mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
13 lines
352 B
Bash
13 lines
352 B
Bash
if (( $+commands[asdf] )); then
|
|
export ASDF_DATA_DIR="${ASDF_DATA_DIR:-$HOME/.asdf}"
|
|
path=("$ASDF_DATA_DIR/shims" $path)
|
|
|
|
# Create the completion file if it doesn't exist.
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_asdf" ]]; then
|
|
asdf completion zsh >| "$ZSH_CACHE_DIR/completions/_asdf" &|
|
|
fi
|
|
|
|
autoload -Uz _asdf
|
|
compdef _asdf asdf
|
|
|
|
fi
|