aboutsummaryrefslogtreecommitdiff
path: root/trash
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-04-13 14:53:17 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-04-13 14:53:17 +0200
commitf65824fe2ad23b256682879b41f507f752aed488 (patch)
treef9208cb2896f33913e85dc6e3222ab88d12e634c /trash
parentadb3b867f5595645779e1d50ada271eb755ccf69 (diff)
downloadscripts-f65824fe2ad23b256682879b41f507f752aed488.tar.gz
scripts-f65824fe2ad23b256682879b41f507f752aed488.zip
Added trash cd command
Diffstat (limited to '')
-rwxr-xr-xtrash3
1 files changed, 3 insertions, 0 deletions
diff --git a/trash b/trash
index a9f6fb1..48392ca 100755
--- a/trash
+++ b/trash
@@ -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]"
13else 13else
14case "$1" in 14case "$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

Generated with cgit - Back to sebastiano.tronto.net