]> git.draconx.ca Git - zshconf.git/blobdiff - zshrc
zprofile: Cleanup.
[zshconf.git] / zshrc
diff --git a/zshrc b/zshrc
index b015d5b0a96c1bb0369425e36ea04ec6fb6cefa5..f1a3191a957b9ca626ca500b8045b2fd663db578 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -59,19 +59,22 @@ 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
-       PS1="${PS1/\[32/[33}"
+       PS1="${PS1/green/yellow}"
 fi
 
+# Locale
+export LANG=en_CA.UTF-8
+export LC_COLLATE=ja_JP.UTF-8
+
 # I like colours
 alias ls='ls --color=auto'
 alias grep='grep --color=auto'