ned: better option names
This commit is contained in:
parent
3c4deabbcc
commit
39fa33465c
1 changed files with 6 additions and 6 deletions
|
@ -108,17 +108,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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue