mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Adds (very) basic zsh autocompletion
This commit is contained in:
parent
ad0d365cf4
commit
7476c02f0a
6
asdf.sh
6
asdf.sh
@ -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
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