Adds (very) basic zsh autocompletion

This commit is contained in:
Justin 2015-12-05 11:14:37 +01:00
parent ad0d365cf4
commit 7476c02f0a
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))
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)"