Move files and folders to the trash
WIP
-
git clone
-
if not exist
$HOME/.Trash
directory, make directory. -
set alias to
bash_profile
orbashrc
alias trash='/PATH/trash-cli/trash'
$ trash --help
# remove files
$ trash [file ...]
# help
$ trash -h
# clear trash
$ trash -c
# force clear trash
$ trash -cf
# force clear trash with verbose option
$ trash -cfv
# list trash
$ trash -l
# list all trash
$ trash -al
# rm -rf
$ trash -rf [file ...]
Add alias rm=trash
to your .zshrc
/.bashrc
to reduce typing & safely trash files: $ rm unicorn.png
.
MIT © Yeongjun Kim