Manage your all temporary directories easily
When we want to experiments, tests, and so on, we'll create temporary directory.
However, almost temporary directories are not deleted that became unnecessary.
Accordingly, many unnecessary directories are scattered around here and there.
tmp
manages that directories.
You can ...
- look all existing temporary directories.
- remove the directory by using
tmp
. Or remove all. - jump to the directory.
$ go get github.com/lycoris0731/tmp
Add new temporary directory(it is called item
).
If there is no arguments, be used tmp
for name.
$ tmp make
$ tmp mk
$ tmp mk temp
$ tmp mk ../
Look all temporary directories.
If -n
argument is passed, the command shows identifier number with paths.
$ tmp list
$ tmp ls
$ tmp ls -n
Remove the directory.
You can pass arguments by full path, identifier number or both.
$ tmp remove [target path] [target id]
$ tmp rm [target path...] [target id...]
You can use fuzzy search(fzf, fzy, etc..) also.
$ tmp ls | fzy | tmp rm
Remove all directries.
$ tmp rm --all
Please see LICENSE.