diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-04-13 14:53:17 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-04-13 14:53:17 +0200 |
| commit | f65824fe2ad23b256682879b41f507f752aed488 (patch) | |
| tree | f9208cb2896f33913e85dc6e3222ab88d12e634c /trash | |
| parent | adb3b867f5595645779e1d50ada271eb755ccf69 (diff) | |
| download | scripts-f65824fe2ad23b256682879b41f507f752aed488.tar.gz scripts-f65824fe2ad23b256682879b41f507f752aed488.zip | |
Added trash cd command
Diffstat (limited to '')
| -rwxr-xr-x | trash | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -12,6 +12,9 @@ if [ -z "$1" ]; then | |||
| 12 | echo "usage: trash [rm FILE(s)|ls|empty]" | 12 | echo "usage: trash [rm FILE(s)|ls|empty]" |
| 13 | else | 13 | else |
| 14 | case "$1" in | 14 | case "$1" in |
| 15 | cd) | ||
| 16 | cd $trashfolder | ||
| 17 | ;; | ||
| 15 | empty) | 18 | empty) |
| 16 | # little check | 19 | # little check |
| 17 | if [ -n "$trashfolder" ]; then | 20 | if [ -n "$trashfolder" ]; then |
