From 01f7d4f44c4940eac0d94e449603d93667cea0bc Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 27 Nov 2023 23:54:45 +1100 Subject: [PATCH] Support asdf with good performance using asdf-direnv --- dot-config/zsh/login/langs.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dot-config/zsh/login/langs.zsh b/dot-config/zsh/login/langs.zsh index 24e9141..6ea4d1d 100644 --- a/dot-config/zsh/login/langs.zsh +++ b/dot-config/zsh/login/langs.zsh @@ -2,6 +2,15 @@ local -a newbins +# asdf +export ASDF_CONFIG_FILE=$XDG_CONFIG_HOME/asdf/asdfrc +export ASDF_DATA_DIR=$XDG_DATA_HOME/asdf +# Don't add asdf's directories to the command path, because evaluating its +# version resolution every time you call a tool is really slow. Instead just +# configure asdf to respect XDG base directories, then rely on Direnv to +# resolve paths properly for each project, as described here: +# https://github.com/zimfw/asdf#how-to-configure-asdf-to-work-with-the-direnv-installed-with-my-system-package-manager + # docker export DOCKER_CONFIG=$XDG_CONFIG_HOME/docker