]> git.draconx.ca Git - zshconf.git/commitdiff
Use zsh prompt escapes for colours.
authorNick Bowler <nbowler@draconx.ca>
Wed, 29 Apr 2009 01:56:45 +0000 (21:56 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 29 Apr 2009 01:56:45 +0000 (21:56 -0400)
zshrc

diff --git a/zshrc b/zshrc
index b015d5b0a96c1bb0369425e36ea04ec6fb6cefa5..6064a9a30a5c888819426e0c310e4aca6d8d5270 100644 (file)
--- 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