mirror of https://github.com/bjeanes/dotfiles.git
Add rvm to prompt
parent
00b122f6dd
commit
86795d54af
|
@ -55,7 +55,8 @@ function precmd {
|
|||
|
||||
local cwd="$pr_blue`prompt_pwd`$pr_reset"
|
||||
local char="%0(?.$pr_green.$pr_red)♪$pr_reset"
|
||||
local time="$pr_grey⌚%*$pr_reset"
|
||||
local time="$pr_grey⌚ %*$pr_reset"
|
||||
local rvm="❖ `rvm-prompt`"
|
||||
|
||||
local user_at_host
|
||||
if [[ "$USER" != "bjeanes" ]]; then
|
||||
|
@ -71,9 +72,9 @@ function precmd {
|
|||
fi
|
||||
|
||||
local rev="$pr_grey$vcs_info_msg_0_$pr_reset"
|
||||
rev="${rev/\(git\) /±}"
|
||||
rev="${rev/\(hg\) /☿}"
|
||||
rev="${rev/\(svn\) /↯}"
|
||||
rev="${rev/\(git\)/±}"
|
||||
rev="${rev/\(hg\)/☿}"
|
||||
rev="${rev/\(svn\)/↯}"
|
||||
|
||||
local left right
|
||||
left=($user_at_host $cwd $char)
|
||||
|
|
Loading…
Reference in New Issue