From f6b1e7cdc9a39dfc5540bd484ba2026429671bb1 Mon Sep 17 00:00:00 2001 From: Michael Komitee Date: Sun, 26 Dec 2010 18:30:54 -0500 Subject: [PATCH] moved cmd result to prompt from rprompt --- themes/komitee.zsh-theme | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/themes/komitee.zsh-theme b/themes/komitee.zsh-theme index e57c2af02..2ac9faf4b 100644 --- a/themes/komitee.zsh-theme +++ b/themes/komitee.zsh-theme @@ -39,7 +39,12 @@ else shell_level="%{$fg[cyan]%}(%{$fg[red]%}$[${SHLVL} - 1]%{$fg[cyan]%})%{$reset_color%}" fi -PROMPT='%{$fg[cyan]%}[${user_host} %{$fg[yellow]%}%~%{$fg[cyan]%}]$(jobs_prompt_info)${shell_level} ${prompt_char} ' +# setup command result indicator +CMDRESULT="%(?,,%{$fg[red]%}[%?]%{$reset_color%})" + +# Put it all together +PROMPT='${CMDRESULT}%{$fg[cyan]%}[${user_host} %{$fg[yellow]%}%~%{$fg[cyan]%}]$(jobs_prompt_info)${shell_level}${prompt_char} ' + # Setup vi mode indicator MODE_INDICATOR="%{$fg_bold[yellow]%}%{$reset_color%}" @@ -50,10 +55,7 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" -# setup command result indicator -CMDRESULT="%(?, ,%{$fg[red]%}[$?]%{$reset_color%})" - # setup right prompt -RPROMPT='$(git_prompt_info)${CMDRESULT}$(vi_mode_prompt_info)' +RPROMPT='$(git_prompt_info)$(vi_mode_prompt_info)' # vim: set ft=zsh