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 ## todo.sh
alias taz='todo.sh addz' alias taz='todo.sh add "(Z)"'
alias tap='todo.sh addp' 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 t='todo.sh'
alias hw='t hw' alias hw='t hw'
alias hwr="hw rel" alias hwr="hw rel"