mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
[chruby] properly redirect errors on missing chruby
This commit is contained in:
parent
98721878fb
commit
8f91babe95
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ _source_from_omz_settings() {
|
|||
}
|
||||
|
||||
function () {
|
||||
local _chruby_homebrew_prefix="$(brew --prefix chruby) &> /dev/null"
|
||||
local _chruby_homebrew_prefix="$(brew --prefix chruby 2> /dev/null)"
|
||||
|
||||
if _homebrew-installed && [[ -r "$_chruby_homebrew_prefix" ]] ; then
|
||||
source "${_chruby_homebrew_prefix}/share/chruby/chruby.sh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue