mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(asdf): fix path to Homebrew installation of asdf
(#10481)
Fixes #10484 Closes #10481
This commit is contained in:
parent
8ae373130c
commit
bd0b4b64c6
1 changed files with 9 additions and 7 deletions
|
@ -4,8 +4,10 @@ ASDF_COMPLETIONS="$ASDF_DIR/completions"
|
||||||
|
|
||||||
# If not found, check for Homebrew package
|
# If not found, check for Homebrew package
|
||||||
if [[ ! -f "$ASDF_DIR/asdf.sh" || ! -f "$ASDF_COMPLETIONS/asdf.bash" ]] && (( $+commands[brew] )); then
|
if [[ ! -f "$ASDF_DIR/asdf.sh" || ! -f "$ASDF_COMPLETIONS/asdf.bash" ]] && (( $+commands[brew] )); then
|
||||||
ASDF_DIR="$(brew --prefix asdf)"
|
brew_prefix="$(brew --prefix asdf)"
|
||||||
ASDF_COMPLETIONS="$ASDF_DIR/etc/bash_completion.d"
|
ASDF_DIR="${brew_prefix}/libexec"
|
||||||
|
ASDF_COMPLETIONS="${brew_prefix}/etc/bash_completion.d"
|
||||||
|
unset brew_prefix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load command
|
# Load command
|
||||||
|
|
Loading…
Reference in a new issue