diff --git a/.zshrc b/.zshrc index 457cc66..f03c840 100644 --- a/.zshrc +++ b/.zshrc @@ -117,6 +117,15 @@ esac #. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash # Compinit : After zinits, before cdreplay # https://carlosbecker.com/posts/speeding-up-zsh/ +# + + +if [[ -d "$HOME/.asdf" ]]; then + export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH" + asdf completion zsh > "${ASDF_DATA_DIR:-$HOME/.asdf}/completions/_asdf" + fpath=(${ASDF_DATA_DIR:-$HOME/.asdf}/completions $fpath) +fi + if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH