Allow for differently installed asdf-vm
parent
1334bbcc8f
commit
bcd840765c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue