From dcedf33b6ef8eceb2e04d1f550737924349d0b12 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Sep 2008 01:06:57 +0200 Subject: [PATCH] Added useful global zsh aliases. --- zsh/rc | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.44.2