From e65417531b35811b0783ace37f9db4c1e4f9011a Mon Sep 17 00:00:00 2001
From: Tony Blyler <tony.blyler@cbinsights.com>
Date: Wed, 12 Feb 2025 12:35:07 -0500
Subject: [PATCH] Update asdf PATH handling with its new version

---
 chezmoi/dot_zshenv | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chezmoi/dot_zshenv b/chezmoi/dot_zshenv
index df9caa5..c90226e 100644
--- a/chezmoi/dot_zshenv
+++ b/chezmoi/dot_zshenv
@@ -20,12 +20,12 @@ if [[ "$OSTYPE" =~ ^darwin ]]; then
 	done
 fi
 
-if [ -r ~/.asdf/asdf.sh ]; then
-	ASDF_FORCE_PREPEND=1 . ~/.asdf/asdf.sh
-fi
+if command -v asdf &> /dev/null; then
+	export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
 
-if command -v brew &> /dev/null && [ -r "$(brew --prefix)/opt/asdf/libexec/asdf.sh" ]; then
-	. "$(brew --prefix)/opt/asdf/libexec/asdf.sh"
+	if ! [ -r "${HOME}/.zcompletions/_asdf" ]; then
+		asdf completion zsh > "${HOME}/.zcompletions/_asdf"
+	fi
 fi
 
 for editor in nvim vim nano; do