From 86795d54aff7093ee012fada8d1c038c65e10698 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sat, 26 Mar 2011 02:51:24 -0500 Subject: [PATCH] Add rvm to prompt --- shell/prompt.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shell/prompt.sh b/shell/prompt.sh index 4812077..73647a7 100644 --- a/shell/prompt.sh +++ b/shell/prompt.sh @@ -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)