Use better todo.sh aliases such that completions work

This commit is contained in:
Adam Goldsmith 2017-08-06 13:52:11 -04:00
parent b16451200c
commit 5a2b5677ab

View File

@ -1,6 +1,11 @@
## todo.sh
alias taz='todo.sh addz'
alias tap='todo.sh addp'
alias taz='todo.sh add "(Z)"'
tap() {
pri="$1:u" #uppercase
shift
todo.sh add "($pri) $@"
}
compdef -e 'words[1]=(todo.sh add); service=todo.sh; (( CURRENT+=1 )); _todo.sh' tap
alias t='todo.sh'
alias hw='t hw'
alias hwr="hw rel"