Skip to content

Commit

Permalink
fix(chruby): update brew sourcing for Apple Silicon (ohmyzsh#12941)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
  • Loading branch information
dskecse and carlosala authored Feb 12, 2025
1 parent 4d9d346 commit 8074eb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/chruby/chruby.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ _source-from-homebrew() {
# check default brew prefix
if [[ -h /usr/local/opt/chruby ]];then
_brew_prefix="/usr/local/opt/chruby"
elif [[ -h /opt/homebrew/opt/chruby ]]; then
_brew_prefix="/opt/homebrew/opt/chruby"
else
# ok , it is not default prefix
# this call to brew is expensive ( about 400 ms ), so at least let's make it only once
Expand Down

0 comments on commit 8074eb8

Please sign in to comment.