Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
304e8f04
Commit
304e8f04
authored
Dec 20, 2014
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3338 from eripa/chruby_fix
Fix chruby plugin to not complain if chruby is *not* installed
parents
b0ad3d7c
1dfadc73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
chruby.plugin.zsh
plugins/chruby/chruby.plugin.zsh
+3
-3
No files found.
plugins/chruby/chruby.plugin.zsh
View file @
304e8f04
...
@@ -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