Add new ruby_version_prompt to mbriggs theme
authorRobert Jung <robert.jung@tolingo.com>
Fri, 27 Jan 2012 11:35:57 +0000 (12:35 +0100)
committerRobert Jung <robert.jung@tolingo.com>
Fri, 27 Jan 2012 11:35:57 +0000 (12:35 +0100)
themes/mbriggs/mbriggs.theme.bash

index 7a79b26..674085b 100644 (file)
@@ -18,7 +18,7 @@ function git_short_sha() {
 
 function prompt() {
     local return_status=""
-    local rvm_ruby="${red}$(rvm-prompt i)${reset_color}"
+    local ruby="${red}$(ruby_version_prompt)${reset_color}"
     local user_host="${green}\h${reset_color}"
     local current_path="\w"
     local n_commands="\!"
@@ -28,7 +28,7 @@ function prompt() {
     local close=')'
     local prompt_char=' \$ '
 
-    PS1="\n${n_commands} ${user_host} ${prompt_symbol} ${rvm_ruby} ${open}${current_path}${git_branch}${close}${return_status}\n${prompt_char}"
+    PS1="\n${n_commands} ${user_host} ${prompt_symbol} ${ruby} ${open}${current_path}${git_branch}${close}${return_status}\n${prompt_char}"
 }
 
 PROMPT_COMMAND=prompt
\ No newline at end of file