From: Robert Jung Date: Fri, 27 Jan 2012 11:35:57 +0000 (+0100) Subject: Add new ruby_version_prompt to mbriggs theme X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=54ffcc0e7fc1a714e287efb18958f83268c21814;p=common%2Fbash_it.git Add new ruby_version_prompt to mbriggs theme --- diff --git a/themes/mbriggs/mbriggs.theme.bash b/themes/mbriggs/mbriggs.theme.bash index 7a79b26..674085b 100644 --- a/themes/mbriggs/mbriggs.theme.bash +++ b/themes/mbriggs/mbriggs.theme.bash @@ -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