From 69cbaaedd3dc35e0f72b45cda05c69b001af9a07 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 28 Apr 2009 21:56:45 -0400 Subject: [PATCH] Use zsh prompt escapes for colours. --- zshrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index b015d5b..6064a9a 100644 --- a/zshrc +++ b/zshrc @@ -59,13 +59,12 @@ preexec() { __NEWRUN=yes } -if [ -n "$COLORTERM" ]; then - PS1=$'%(!,%{\e[31;1m%},%{\e[32;1m%}%n@)%m%{\e[34;1m%} %33<...<%~%<< %#%{\e[0m%} ' +# A gentoo-like prompt. +PS1=$'%B%(!,%F{red},%F{green}%n@)%m %F{blue}%33<...<%~%<< %#%f%b ' +if [ -n "$COLORTERM" ]; then # Random colour-related options export MINICOM="-c on" -else - PS1='%n@%m %33<...<%~%<< %# ' fi if [[ -n "$SSH_CONNECTION" ]]; then -- 2.43.2