It's been a while since I have used asdf-direnv so I'm updating my setup. I've followed the setup instructions and I'm using a system version of direnv:
asdf plugin-add direnv
asdf direnv setup --shell fish --version system
I have use asdf in my $HOME/.envrc file and only the python plugin in addition to direnv. Based on the debug output, I'm guessing the python plugin is putting the shims in PATH? Is there a way to prevent this, or do I have to remove it manually? I don't remember my previous config having this issue, but maybe I never noticed it.
$PATH: set in global scope, exported, a path variable with 18 elements
$PATH[1]: |/Users/nick/.asdf/installs/python/3.12.4/bin|
$PATH[2]: |/Users/nick/.asdf/plugins/python/shims|
+++ get_install_path python version 3.12.4
+++ local plugin=python
+++ local install_type=version
+++ local version=3.12.4
+++ local install_dir
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n /Users/nick/.asdf ']'
++++ data_dir=/Users/nick/.asdf
++++ printf '%s\n' /Users/nick/.asdf
+++ install_dir=/Users/nick/.asdf/installs
+++ '[' -d /Users/nick/.asdf/installs/python ']'
+++ '[' version = version ']'
+++ printf '%s/%s/%s\n' /Users/nick/.asdf/installs python 3.12.4
++ install_path=/Users/nick/.asdf/installs/python/3.12.4
++ '[' '!' -d /Users/nick/.asdf/installs/python/3.12.4 ']'
++ '[' -d /Users/nick/.asdf/plugins/python/shims ']'
++ echo PATH_add /Users/nick/.asdf/plugins/python/shims
It's been a while since I have used asdf-direnv so I'm updating my setup. I've followed the setup instructions and I'm using a system version of
direnv
:I have
use asdf
in my $HOME/.envrc file and only the python plugin in addition to direnv. Based on the debug output, I'm guessing the python plugin is putting the shims in PATH? Is there a way to prevent this, or do I have to remove it manually? I don't remember my previous config having this issue, but maybe I never noticed it.