From bcd840765cba2690093a01a378cadd07e41f0fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 12 Mar 2021 16:38:02 +0100 Subject: [PATCH] Allow for differently installed asdf-vm --- symlinks/config/fish/config.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)