From 2ea48343419f99fc558b547548e5fee16721abd5 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sat, 7 Jun 2025 09:16:01 +0900 Subject: [PATCH] feat: update asdf --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) 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