-# Make sure ^Y is bound to yank, necessary for the TRAPINT function to work as
-# excepted.
-bindkey "^Y" yank
-
-
-# If a rc.local file exists load it, otherwise load a rc file for the current
-# hostname (first part before a dot) if it exists.
-host=${$(hostname)//.*/}
-if [[ -f ~/.zsh/rc.local ]]; then;
- source ~/.zsh/rc.local
-elif [[ -f ~/.zsh/rc.$host ]]; then;
- source ~/.zsh/rc.$host
+
+# Simplify calls to less, automatically redirects all output.
+alias -g L='2>&1 | less'
+# Simplify calls to colordiff, output is also piped through less.
+alias -g D='2>&1 | colordiff L'
+# Simplify calls to grep.
+alias -g G='| grep'
+
+# Improved ls which displays the files in columns (-C), visualises directories,
+# links and other special files (-F) and pages everything through less (L).
+#
+# If available use GNU ls with colorized output. If it isn't available use
+# normal ls which needs CLICOLOR_FORCE so it displays colors when used with a
+# pager.
+ls --color &> /dev/null
+if [[ $? -eq 0 ]]; then
+ alias ls='ls --color'
+else
+ alias ls='CLICOLOR_FORCE=1 ls -G'