Merge pull request #25 from justin-calleja/zsh-basic-autocomp

Adds (very) basic zsh autocompletion. Thank you @justin-calleja ~!
This commit is contained in:
Akash Manohar 2015-12-05 19:51:51 +05:30
commit e4284b4964
2 changed files with 9 additions and 0 deletions

View File

@ -8,3 +8,9 @@ fi
asdf_dir=$(cd $(dirname $current_script_path); echo $(pwd)) asdf_dir=$(cd $(dirname $current_script_path); echo $(pwd))
export PATH="${asdf_dir}/bin:${asdf_dir}/shims:$PATH" export PATH="${asdf_dir}/bin:${asdf_dir}/shims:$PATH"
if [ -n "$ZSH_VERSION" ]; then
fpath=(${asdf_dir}/completions $fpath)
autoload -U compinit
compinit
fi

3
completions/_asdf Normal file
View File

@ -0,0 +1,3 @@
#compdef asdf
_arguments "1: :(plugin-add plugin-list plugin-remove plugin-update install uninstall which where list list-all reshim)"