diff options
Diffstat (limited to 'ayu')
-rwxr-xr-x | ayu | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ayu b/ayu index 6f13f22..44cce3c 100755 --- a/ayu +++ b/ayu @@ -51,9 +51,20 @@ new() { rm $tmpfile } +# Remove +re() { + printf "How the fuck one can do this? :( \n" + rm -v ${1}${2}.age +} +# Remove-recursive +rr() { + test -d "$@" && usage && exit + rm -r -v "$(dirname "$@")" +} + # Print usage usage() { - printf "$0 [ ed | ls | new | vi ] \n" + printf "$0 [ ed | ls | new | re | rr | vi ] \n" } # View an entry, otherwise list the contents of the directory specified. @@ -78,6 +89,12 @@ case $1 in new) new $2 ;; + remove | re) + re $2 $3 + ;; + remove-recursive | rr) + rr $2 + ;; usage) usage ;; |