diff --git a/.config/shell/bin/ned b/.config/shell/bin/ned index 3d749e8..422240c 100755 --- a/.config/shell/bin/ned +++ b/.config/shell/bin/ned @@ -112,17 +112,17 @@ check_setup() { } # Parse arguments (first character only) -case "${1:0:1}" in +case "${1}" in # help - 'h') usage;; + 'help') usage;; # create and edit new note - 'n') new $@;; + 'new') new $@;; # edit an existing document or file - 'e') edit $@;; + 'edit') edit $@;; # run a shell (cd to) in the directory - 'c'|'x'|'s') shell;; + 'cd'|'shell') shell;; # me: edit ned (the file you are looking at) - 'm') $EDITOR "$(realpath "$0")";; + 'me') $EDITOR "$(realpath "$0")";; *) echo "no such option";; esac