From: Simon Ruderich Date: Wed, 8 Apr 2009 12:11:25 +0000 (+0200) Subject: zsh: Add new global alias E which performs 2>&1. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=82d42321c92ee8fde57d62d07a3563f0f6b50bb4;p=config%2Fdotfiles.git zsh: Add new global alias E which performs 2>&1. Not sure how I came up with this name but I like it. --- diff --git a/zsh/rc b/zsh/rc index 69a5d4c..04acf1e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -303,10 +303,13 @@ zstyle ':completion:*:(hg|git)*:*' ignore-line yes # Make sure aliases are expanded when using sudo. alias sudo='sudo ' +# Redirect stderr to stdout. +alias -g E='2>&1' + # Simplify calls to less, automatically redirects all output. -alias -g L='2>&1 | less' +alias -g L='E | less' # Simplify calls to colordiff, output is also piped through less. -alias -g D='2>&1 | colordiff L' +alias -g D='E | colordiff L' # Simplify calls to grep. alias -g G='| grep'