Skip to content

Commit

Permalink
Added Shorthand commands
Browse files Browse the repository at this point in the history
o - open
f - find
n - new
g - grep

Signed-off-by: primis <[email protected]>
  • Loading branch information
primis committed Dec 1, 2016
1 parent be7d1f7 commit b234dfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notes
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ main() {
fi

case "$1" in
"new" )
"new"|"n" )
cmd="new_note"
;;
"find" )
"find"|"f" )
cmd="find_notes"
;;
"grep" )
"grep"|"g" )
cmd="grep_notes"
;;
"open" )
"open"|"o" )
cmd="open_something"
;;
--help | -help | -h )
Expand All @@ -127,4 +127,4 @@ main() {
ret=$[$ret+$?]
exit $ret
}
main "$@"
main "$@"

0 comments on commit b234dfa

Please sign in to comment.