Merge pull request #25 from jshort/zsh_complete

Zsh completion for -x, -p, -o.
This commit is contained in:
Lazarus Lazaridis 2018-03-13 19:31:57 +02:00 committed by GitHub
commit af41b6f9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,6 +411,9 @@ _complete_goto_zsh()
'(- 1 2)'{-u,--unregister}'[unregisters an alias]:unregister:->unregister' '(- 1 2)'{-u,--unregister}'[unregisters an alias]:unregister:->unregister'
'(: -)'{-l,--list}'[lists aliases]' '(: -)'{-l,--list}'[lists aliases]'
'(*)'{-c,--cleanup}'[cleans up non existent directory 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]' '(: -)'{-h,--help}'[prints this help]'
'(* -)'{-v,--version}'[displays the version of the goto script]' '(* -)'{-v,--version}'[displays the version of the goto script]'
) )