Browse code

Refined RVM prompt in Crunch theme

Stephen Eley authored on 22/02/2011 at 19:38:37
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@
6 6
 # things that vary in my own workflow are shown:
7 7
 #
8 8
 # * The time (not the date)
9
-# * The RVM version (omitting the interpreter name if it's just 'ruby')
9
+# * The RVM version and gemset (omitting the 'ruby' name if it's MRI)
10 10
 # * The current directory
11 11
 # * The Git branch and its 'dirty' state
12 12
 # 
... ...
@@ -29,7 +29,7 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗"
29 29
 
30 30
 # Our elements:
31 31
 CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}"
32
-CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\$(~/.rvm/bin/rvm-prompt v g)$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
32
+CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
33 33
 CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) "
34 34
 CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ "
35 35