Skip to content

h-matsuo/macOS-trash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

trash

Move your files / directories to Trash box in command line.
This tool works only on macOS.

コマンドラインからファイルやディレクトリをゴミ箱に入れられます.
macOS 専用ツールです.

Installation / インストール

Just download the script file and move it in /usr/local/bin.
You can also try the following code in command line:

スクリプトファイルをダウンロードし,/usr/local/bin に配置してください.
次のコードをコマンドラインから実行することでもインストールできます:

$ curl -O https://raw.githubusercontent.com/h-matsuo/macOS-trash/master/trash; chmod +x trash; mv trash /usr/local/bin

Usage / 使い方

Delete / 削除

$ trash [-r] <file>...

Option "-r" is required when you remove directory.

ディレクトリを削除する場合,オプション "-r" が必要です.

Put Back / 戻す

Currently, putting the file back from Trash box is not currently supported.
However, you can put it back with GUI (use Finder.app).

現在,ゴミ箱からもとに戻す機能はサポートされていません.
しかし,GUI を用いて戻すことができます(Finder.app を使用してださい).

Put back

License / ライセンス

MIT License.

About

Move your files / directories to Trash box in command line.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages