Skip to content

Option to use system-wide direnv #58

Answered by vic
glasserc asked this question in Q&A
Discussion options

You must be logged in to vote

After installing this plugin you let asdf know that you want to use the direnv binary installed by your system
just by having a .tool-versions file like this:

# this is my global ~/.tool-versions file
direnv system

and then just create a directory for asdf-direnv to store cached environments.

$ mkdir -p ~/.asdf/installs/direnv/system/env

If I recall correctly (at least when I implemented asdf external commands) they don't depend on any version to be installed, since they are part of the plugin itself. And as long as you have the plugin installed, the extension commands like command-hook-asdf.bash should be found by asdf.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@andrewcrook
Comment options

@michi-zuri
Comment options

Answer selected by smorimoto
Comment options

You must be logged in to vote
1 reply
@comfortablynick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #58 on December 14, 2020 14:43.