Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
1dfadc73
Commit
1dfadc73
authored
Nov 24, 2014
by
Eric Ripa
Browse files
Fix chruby plugin to not complain if chruby is *not* installed
parent
0222e774
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/chruby/chruby.plugin.zsh
View file @
1dfadc73
...
@@ -24,7 +24,7 @@ _homebrew-installed() {
...
@@ -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() {
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment