summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorStephen Eley <sfeley@gmail.com>2011-02-22 14:38:37 -0500
committerStephen Eley <sfeley@gmail.com>2011-02-22 14:38:37 -0500
commitd926a55872b5a12ab8b987e9d86c02358d0c825e (patch)
treea651210ebcc63a8a8a2d5d94f5c7a4d6fe37112b /themes
parentfadd5f74ce205ddb14735354170150745ae42ca6 (diff)
downloadzsh-d926a55872b5a12ab8b987e9d86c02358d0c825e.tar.gz
zsh-d926a55872b5a12ab8b987e9d86c02358d0c825e.tar.bz2
zsh-d926a55872b5a12ab8b987e9d86c02358d0c825e.zip
Refined RVM prompt in Crunch theme
Diffstat (limited to 'themes')
-rw-r--r--themes/crunch.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/crunch.zsh-theme b/themes/crunch.zsh-theme
index 7dd5816ee..2473cd230 100644
--- a/themes/crunch.zsh-theme
+++ b/themes/crunch.zsh-theme
@@ -6,7 +6,7 @@
# things that vary in my own workflow are shown:
#
# * The time (not the date)
-# * The RVM version (omitting the interpreter name if it's just 'ruby')
+# * The RVM version and gemset (omitting the 'ruby' name if it's MRI)
# * The current directory
# * The Git branch and its 'dirty' state
#
@@ -29,7 +29,7 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗"
# Our elements:
CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}"
-CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\$(~/.rvm/bin/rvm-prompt v g)$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
+CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) "
CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ "