]> git.draconx.ca Git - zshconf.git/blobdiff - zshrc
zprofile: Cleanup.
[zshconf.git] / zshrc
diff --git a/zshrc b/zshrc
index 130e70c1c192ecef3b3097a8d09fa3cebc6aa41b..f1a3191a957b9ca626ca500b8045b2fd663db578 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -59,15 +59,27 @@ 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'
+
+# I hate mistakes
+alias mv='mv -i'
+alias rm='rm -i'
+alias cp='cp -i'