From 58f146d000947ff47b883ccca6b79d7ad720c3f5 Mon Sep 17 00:00:00 2001 From: bogor Date: Fri, 27 Apr 2012 19:46:25 +0300 Subject: [PATCH] fix the prompt --- themes/mefisto.zsh-theme | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/mefisto.zsh-theme b/themes/mefisto.zsh-theme index d6708e190..137428937 100644 --- a/themes/mefisto.zsh-theme +++ b/themes/mefisto.zsh-theme @@ -1,12 +1,17 @@ # diff color for root shell if [ $UID -eq 0 ]; then - NCOLOR="red"; else NCOLOR="green"; fi + NCOLOR="red" + PCOLOR="red" +else + NCOLOR="green" + PCOLOR="green" +fi # diff color for host if on SSH session if [[ -n "${SSH_CLIENT}" || -n "${SSH2_CLIENT}" ]]; then HCOLOR="yellow"; else HCOLOR="green"; fi -PROMPT='%{$fg[cyan]%}[%{$reset_color%}%{$fg[$NCOLOR]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[$HCOLOR]%}%m%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[cyan]%}[%{$reset_color%}%{$fg[blue]%}%B%c/%b%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[green]%}%#%{$reset_color%} ' +PROMPT='%{$fg[cyan]%}[%{$reset_color%}%{$fg[$NCOLOR]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[$HCOLOR]%}%m%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[cyan]%}[%{$reset_color%}%{$fg[blue]%}%B%c/%b%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[$PCOLOR]%}%#%{$reset_color%} ' RPROMPT='$(git_prompt_info)'