ktr0731 / tmp

Manage your all temporary directories easily

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmp

CircleCI MIT License
Manage your all temporary directories easily

Description

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.

Installation

$ go get github.com/lycoris0731/tmp

Usage

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

License

Please see LICENSE.

About

Manage your all temporary directories easily

License:MIT License


Languages

Language:Go 100.0%