From 5a2b5677abfa9a9ad79d8df157d17c7aa8346e12 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 6 Aug 2017 13:52:11 -0400 Subject: [PATCH] Use better todo.sh aliases such that completions work --- .aliases/command-specific/todo.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.aliases/command-specific/todo.sh b/.aliases/command-specific/todo.sh index 953a905..83dc704 100644 --- a/.aliases/command-specific/todo.sh +++ b/.aliases/command-specific/todo.sh @@ -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"