From 2a7f2ae70bc08767f73ea3c3538acd3e760fdc54 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 9 Feb 2015 20:24:37 +0100 Subject: [PATCH] fixing the alternative zsh prompt --- .zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 993fb09..79d8b6e 100644 --- a/.zshrc +++ b/.zshrc @@ -26,9 +26,10 @@ elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then source "$HOME/liquidprompt/liquidprompt" else if [ "$CLICOLOR" -ne 0 ]; then - PS1="\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;33m\]\h\[\033[01;31m\]->\[\033[00m\] " + autoload -U colors && colors + PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[yellow]%}%M%{$fg[red]%}->%{$reset_color%} " else - PS1='\u@\h-> ' + PS1='%n@%M-> ' fi fi