Add rvm to prompt

pull/2/head
Bodaniel Jeanes 2011-03-26 02:51:24 -05:00
parent 00b122f6dd
commit 86795d54af
1 changed files with 5 additions and 4 deletions

View File

@ -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)