From 3229e2a5aa69ef93a10a8d659309ed57e300fbe2 Mon Sep 17 00:00:00 2001 From: James Short Date: Tue, 13 Mar 2018 10:27:12 -0700 Subject: [PATCH] Zsh completion for -x, -p, -o. Resolves #21. --- goto.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/goto.sh b/goto.sh index a6e656c..565646e 100644 --- a/goto.sh +++ b/goto.sh @@ -411,6 +411,9 @@ _complete_goto_zsh() '(- 1 2)'{-u,--unregister}'[unregisters an alias]:unregister:->unregister' '(: -)'{-l,--list}'[lists aliases]' '(*)'{-c,--cleanup}'[cleans up non existent directory aliases]' + '(1 2)'{-x,--expand}'[expands an alias]:expand:->aliases' + '(1 2)'{-p,--push}'[pushes the current directory onto the stack, then performs goto]:push:->aliases' + '(*)'{-o,--pop}'[pops the top directory from stack, then changes to that directory]' '(: -)'{-h,--help}'[prints this help]' '(* -)'{-v,--version}'[displays the version of the goto script]' )