]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Added useful global zsh aliases.
authorSimon Ruderich <simon@ruderich.org>
Sat, 6 Sep 2008 23:06:57 +0000 (01:06 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 6 Sep 2008 23:06:57 +0000 (01:06 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index cebbbf984b4517fd984d096d17bec42eb42a9fb7..298c5e3448f16ac8a3019ef97f94c333cfe8a1e5 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -71,6 +71,13 @@ TRAPINT() {
 # excepted.
 bindkey "^Y" yank
 
+# 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'
+
 
 # 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.