mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
Merge pull request #25 from justin-calleja/zsh-basic-autocomp
Adds (very) basic zsh autocompletion. Thank you @justin-calleja ~!
This commit is contained in:
commit
e4284b4964
6
asdf.sh
6
asdf.sh
@ -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
3
completions/_asdf
Normal 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)"
|
Loading…
Reference in New Issue
Block a user