Skip to content

Commit 24a8434

Browse files
committed
add asdf settings ref: asdf-vm/asdf#1895
1 parent 9538c1d commit 24a8434

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

fish/config.fish

+14
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,17 @@ alias gb="git branch | fzf | xargs git checkout"
2727
alias k='kubectl'
2828
alias kx='kubectx | fzf | xargs kubectx'
2929
alias kns='kubens | fzf | xargs kubens'
30+
31+
# ASDF configuration code
32+
if test -z $ASDF_DATA_DIR
33+
set _asdf_shims "$HOME/.asdf/shims"
34+
else
35+
set _asdf_shims "$ASDF_DATA_DIR/shims"
36+
end
37+
38+
# Do not use fish_add_path (added in Fish 3.2) because it
39+
# potentially changes the order of items in PATH
40+
if not contains $_asdf_shims $PATH
41+
set -gx --prepend PATH $_asdf_shims
42+
end
43+
set --erase _asdf_shims

0 commit comments

Comments
 (0)