Allow for differently installed asdf-vm

pull/1/head
Ensar Sarajčić 2021-03-12 16:38:02 +01:00
parent 1334bbcc8f
commit bcd840765c
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,14 @@ abbr -a batdiff "git diff --name-only --diff-filter=d | xargs bat --diff"
source ~/.config/fish/platform_config/$MACHINE_TYPE.fish
source ~/.asdf/asdf.fish
if [ -f /opt/asdf-vm/asdf.sh ]; then
set -gx ASDF_DIR /opt/asdf-vm
set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc
set -gx ASDF_DATA_DIR $XDG_DATA_HOME/asdf
source $ASDF_DIR/asdf.sh
else
source ~/.asdf/asdf.fish
end
eval (asdf exec direnv hook fish | source)