Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fe815f1
)
Make it so rbenv doesn't try to run if it's not installed
author
Mike Thornton
<msthornton@gmail.com>
Mon, 7 May 2012 20:48:38 +0000
(15:48 -0500)
committer
Mike Thornton
<msthornton@gmail.com>
Mon, 7 May 2012 20:48:38 +0000
(15:48 -0500)
plugins/available/rbenv.plugin.bash
patch
|
blob
|
history
diff --git
a/plugins/available/rbenv.plugin.bash
b/plugins/available/rbenv.plugin.bash
index
bd3f78e
..
c45d714
100644
(file)
--- a/
plugins/available/rbenv.plugin.bash
+++ b/
plugins/available/rbenv.plugin.bash
@@
-2,7
+2,7
@@
# Load rbebv, if you are using it
export PATH="$HOME/.rbenv/bin:$PATH"
-eval "$(rbenv init -)"
+
[[ `which rbenv` ]] &&
eval "$(rbenv init -)"
# Load the auto-completion script if rbenv was loaded.
-source ~/.rbenv/completions/rbenv.bash
+[[ -e ~/.rbenv/completions/rbenv.bash ]] && source ~/.rbenv/completions/rbenv.bash
\ No newline at end of file