Skip to content

Commit

Permalink
Successfully debugged getting asdf/direnv working
Browse files Browse the repository at this point in the history
  • Loading branch information
glasserc committed Mar 5, 2022
1 parent acdb4fc commit 435028f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dot/config/fish/config.fish
Expand Up @@ -22,12 +22,21 @@ end
# https://github.com/asdf-vm/asdf/issues/687 (and linked issues).
# asdf uses ASDF_DATA_DIR to figure out where it should be installed.
set -x ASDF_DATA_DIR ~/.config/asdf
# We might need this too because of asdf-direnv?
# See https://github.com/asdf-community/asdf-direnv/issues/102.
set -x ASDF_DIR ~/.config/asdf
if test -f $ASDF_DATA_DIR
# Using asdf only through direnv
# See https://github.com/asdf-community/asdf-direnv, under "Pro-Tips".
source $ASDF_DATA_DIR/lib/asdf.fish
end
add_path $ASDF_DATA_DIR/bin
# Be sure to install the direnv plugin.

# direnv installed system-wide using apt rather than managed using asdf
#eval (asdf exec direnv hook fish)
# You also need to ensure that asdf uses it:
# asdf global direnv system
# You might need to install at least one version of direnv too:
# asdf install direnv latest
# See https://github.com/asdf-vm/asdf/issues/1130 and https://github.com/asdf-community/asdf-direnv/issues/103.

0 comments on commit 435028f

Please sign in to comment.