Add new ruby_version_prompt to mbriggs theme
parent
b988a3e628
commit
54ffcc0e7f
|
|
@ -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
|
||||||
Loading…
Reference in New Issue