mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 22:00:08 +00:00
Merge pull request #3338 from eripa/chruby_fix
Fix chruby plugin to not complain if chruby is *not* installed
This commit is contained in:
commit
304e8f0480
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ _homebrew-installed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_chruby-from-homebrew-installed() {
|
_chruby-from-homebrew-installed() {
|
||||||
brew --prefix chruby &> /dev/null
|
[ -r $(brew --prefix chruby)] &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
_ruby-build_installed() {
|
_ruby-build_installed() {
|
||||||
|
@ -45,11 +45,11 @@ _source_from_omz_settings() {
|
||||||
zstyle -s :omz:plugins:chruby path _chruby_path
|
zstyle -s :omz:plugins:chruby path _chruby_path
|
||||||
zstyle -s :omz:plugins:chruby auto _chruby_auto
|
zstyle -s :omz:plugins:chruby auto _chruby_auto
|
||||||
|
|
||||||
if _chruby_path && [[ -r _chruby_path ]]; then
|
if ${_chruby_path} && [[ -r ${_chruby_path} ]]; then
|
||||||
source ${_chruby_path}
|
source ${_chruby_path}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if _chruby_auto && [[ -r _chruby_auto ]]; then
|
if ${_chruby_auto} && [[ -r ${_chruby_auto} ]]; then
|
||||||
source ${_chruby_auto}
|
source ${_chruby_auto}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue