commit | 2bc89fd8c1c1829ae3f97cf73ae307d84ecb76a6 | [log] [tgz] |
---|---|---|
author | Marshall Yount <marshall@yountlabs.com> | 周四 1月 09 12:37:06 2014 -0600 |
committer | Marshall Yount <marshall@yountlabs.com> | 周四 1月 09 12:37:06 2014 -0600 |
tree | 0a21a17741f9d03488fba9326d6d222061facdaf | |
parent | adfd72a3ad592e3be11512b471ac3f273580ab19 [diff] |
add support for rbenv gemset command to bash prompt
diff --git a/themes/base.theme.bash b/themes/base.theme.bash index d616927..9c5bedb 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash
@@ -132,6 +132,7 @@ 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 }