From: Simon Ruderich Date: Sat, 6 Sep 2008 23:06:57 +0000 (+0200) Subject: Added useful global zsh aliases. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=dcedf33b6ef8eceb2e04d1f550737924349d0b12;p=config%2Fdotfiles.git Added useful global zsh aliases. --- diff --git a/zsh/rc b/zsh/rc index cebbbf9..298c5e3 100644 --- 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.