Add new ruby_version_prompt to mbriggs theme

pull/97/head
Robert Jung 2012-01-27 12:35:57 +01:00
parent b988a3e628
commit 54ffcc0e7f
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ function git_short_sha() {
function prompt() { function prompt() {
local return_status="" 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 user_host="${green}\h${reset_color}"
local current_path="\w" local current_path="\w"
local n_commands="\!" local n_commands="\!"
@ -28,7 +28,7 @@ function prompt() {
local close=')' local close=')'
local prompt_char=' \$ ' 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 PROMPT_COMMAND=prompt