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:
adfd72a
)
add support for rbenv gemset command to bash prompt
author
Marshall Yount
<marshall@yountlabs.com>
Thu, 9 Jan 2014 18:37:06 +0000
(12:37 -0600)
committer
Marshall Yount
<marshall@yountlabs.com>
Thu, 9 Jan 2014 18:37:06 +0000
(12:37 -0600)
themes/base.theme.bash
patch
|
blob
|
history
diff --git
a/themes/base.theme.bash
b/themes/base.theme.bash
index
d616927
..
9c5bedb
100644
(file)
--- a/
themes/base.theme.bash
+++ b/
themes/base.theme.bash
@@
-132,6
+132,7
@@
function rvm_version_prompt {
function rbenv_version_prompt {
if which rbenv &> /dev/null; then
rbenv=$(rbenv version-name) || return
+ $(rbenv commands | grep -q gemset) && gemset=$(rbenv gemset active) && rbenv="$rbenv@${gemset%% *}"
echo -e "$RBENV_THEME_PROMPT_PREFIX$rbenv$RBENV_THEME_PROMPT_SUFFIX"
fi
}