ohmyzsh/plugins/asdf/asdf.plugin.zsh
2025-03-23 12:47:34 +00:00

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