[Question] should I be able to use direnv ‘system' ? #87
-
I setup my asdf global python to ‘system’ so the default uses python2 from macOS and python3 from homebrew. I already have direvn installed via homebrew so I tried the same by setting it to ‘system'.
reshim makes no difference. Therefore, I am wondering if it is because the plugin asdf-direnv hasn’t accounted for this configuration? Update: I have tried #58 (comment)
then reshiming but I get the same |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It seems asdf is not managing direnv. If there is no line with direnv version use: Hope this helps |
Beta Was this translation helpful? Give feedback.
-
May I suggest you try hooking up direnv with For direnv to understand the
I couldn't test my suggestions, since my OS (Solus) doesn't offer a direnv package. Please let us know if it didn't work. @RCristiano's suggestion may or might not be required, depending if the asdf shims are before or after your system paths. I personally make sure that asdf shims are the last thing on my path to avoid for example anaconda shims of anything and everything to shadow my system bins. |
Beta Was this translation helpful? Give feedback.
May I suggest you try hooking up direnv with
eval "$(direnv hook bash)"
instead ofeval "$(asdf exec direnv hook bash)"
Since you are using the system-installed direnv, there is no need for asking asdf to tell you direnv's path, just use call direnv directly from your system's path.
For direnv to understand the
use asdf
instruction you'd still need to add the asdf hook to the direnv config:I couldn't test my suggestions, since my OS (Solus) doesn't offer a direnv package. Please let us know if it didn't work. @RCristiano's suggestion may or might not be required, depending if the asdf shims are before or after your sy…