You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initializes asdf, installing it using git if not installed yet. Also, bypasses
the shims if you're using the direnv plugin, as suggested by the plugin
pro-tips.
Settings
The path of ASDF_DIR, where asdf is installed, is checked among the usual
directories created by Homebrew or Pacman, or the default ${HOME}/.asdf. You
can define ASDF_DIR in your .zshrc before initializing this module to customize
its path:
ASDF_DIR=/path/to/asdf_dir
FAQ
Do do I install the direnv plugin to work with this module?
How to configure asdf to work with the direnv installed with my system package manager?
To use your system's direnv instead of direnv installed via asdf, follow these
steps:
Keep the asdf direnv plugin installed. You can install it with:
asdf plugin-add direnv
Uninstall any direnv installed with asdf:
asdf uninstall direnv
Make sure the ~/.config/direnv/lib/use_asdf.sh script exists. You can
generate it with:
asdf direnv setup --no-touch-rc-file --version system
Make sure your direnv .envrc files have use asdf.
Remove zmodule asdf from .zimrc or any asdf initialization from .zshrc.
Make sure you're initializing direnv during shell start-up, preferably with
zmodule dirvenv in your .zimrc.
Basically you're using direnv to activate asdf this way. Since you're using the
system's direnv, that does not depend on asdf to work, it's a much simpler setup.
About
Sets up asdf, with auto install and optimized usage of the direnv plugin.