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:
e2505ee
)
Added a check to see if rvm is installed
author
Robert R Evans
<robert@codewranglers.org>
Thu, 14 Oct 2010 16:10:26 +0000
(09:10 -0700)
committer
Robert R Evans
<robert@codewranglers.org>
Thu, 14 Oct 2010 16:10:26 +0000
(09:10 -0700)
themes/base.theme.bash
patch
|
blob
|
history
diff --git
a/themes/base.theme.bash
b/themes/base.theme.bash
index
d14e42b
..
30fa539
100644
(file)
--- a/
themes/base.theme.bash
+++ b/
themes/base.theme.bash
@@
-22,6
+22,8
@@
function git_prompt_info() {
function rvm_version_prompt {
- rvm=$(rvm tools identifier) || return
- echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
+ if which rvm &> /dev/null; then
+ rvm=$(rvm tools identifier) || return
+ echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
+ fi
}
\ No newline at end of file