Setup ASDF from Homebrew properly

Bo Jeanes 2021-11-18 11:45:39 +11:00
parent cbdacbd7bc
commit bb3c0db4b1
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +0,0 @@
if [ -d "$HOME/.asdf" ]; then
. $HOME/.asdf/completions/asdf.bash
fi

View File

@ -1,5 +1,8 @@
if [ -d "$HOME/.asdf" ]; then
if [ -f "$HOME/.asdf/asdf.sh" ]; then
. $HOME/.asdf/asdf.sh
alias arst=asdf # For Colemak
elif command -v brew &>/dev/null && [ -f "`brew --prefix`/opt/asdf/libexec/asdf.sh" ]; then
. `brew --prefix`/opt/asdf/libexec/asdf.sh
fi
# Colemak alias
command -v asdf &>/dev/null && alias arst=asdf