diff --git a/symlinks/config/fish/config.fish b/symlinks/config/fish/config.fish index 7b1fc5c..266a8ea 100644 --- a/symlinks/config/fish/config.fish +++ b/symlinks/config/fish/config.fish @@ -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)