]> pd.if.org Git - zpackage/commitdiff
added note remove
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 17 Feb 2015 06:33:47 +0000 (06:33 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 17 Feb 2015 06:33:47 +0000 (06:33 +0000)
zpm-note

index 6b4cc456c7f5d2b41864720efeb72225decdd6f2..c036beb50a06c45a27bb60640dcb7710a4be7795 100755 (executable)
--- a/zpm-note
+++ b/zpm-note
@@ -93,6 +93,10 @@ case $cmd in
                flock -n -E3 $file vim $file
                if [ $? -eq 3 ]; then echo already editing $1; exit 1; fi
                ;;
+       remove)
+               file=$(findnote $1)
+               rm $file
+               ;;
        show)
                file=$(findnote $1)
                ${PAGER:-less} $file