X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=04acf1e0bb453013d5edf101eb1cf3e27f2164dc;hb=82d42321c92ee8fde57d62d07a3563f0f6b50bb4;hp=69a5d4c684bbf8617efec0d4f7a62903e6d8f45c;hpb=216988271eff3f2482eb705378e3bf07e9413d02;p=config%2Fdotfiles.git 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'