Add new ruby_version_prompt to mbriggs theme

This commit is contained in:
Robert Jung
2012-01-27 12:35:57 +01:00
parent b988a3e628
commit 54ffcc0e7f

View 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