From 97c5191192714c9b2b71b07c5565b506b4dc6ce4 Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Fri, 20 Jan 2012 14:24:37 +0100 Subject: [PATCH] Added last command status and RVM config --- themes/ebouchut.zsh-theme | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/themes/ebouchut.zsh-theme b/themes/ebouchut.zsh-theme index 5e9410032..70cd856ae 100644 --- a/themes/ebouchut.zsh-theme +++ b/themes/ebouchut.zsh-theme @@ -6,7 +6,7 @@ # # Right prompt when in a Git repository: # ±‹branch_name clean_or_dirty› status(ahead) [short_sha] -# +# # author: Eric Bouchut ZSH_THEME_GIT_PROMPT_PREFIX="±‹%{$fg_bold[yellow]%}" @@ -34,9 +34,14 @@ ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$reset_color%}]" local username="%{$fg_bold[green]%}%n%{$reset_color%}" local hostname="%{$fg_bold[magenta]%}%m%{$reset_color%}" local current_dir="%{$fg_bold[blue]%}%~%{$reset_color%}" +local cmd_status="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})" +local rvm_config=$(~/.rvm/bin/rvm-prompt) -# Left prompt: username@hostname:current_directory% -PROMPT='$username@$hostname:$current_dir%# ' +# Left prompt: username@hostname:current_directory +PROMPT=' +$username@$hostname:$current_dir +${cmd_status} ' -# Right prompt when in a git repo: ±‹branch_name clean_or_dirty› status(ahead) [short_sha] -RPROMPT='$(git_prompt_info)$(git_prompt_status)$(git_prompt_ahead)$(git_prompt_short_sha)' + +# Right prompt when in a git repo: rvm_config ±‹branch_name clean_or_dirty› status(ahead) [short_sha] +RPROMPT='${rvm_config} $(git_prompt_info)$(git_prompt_status)$(git_prompt_ahead)$(git_prompt_short_sha)'