X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=298c5e3448f16ac8a3019ef97f94c333cfe8a1e5;hb=dcedf33b6ef8eceb2e04d1f550737924349d0b12;hp=cebbbf984b4517fd984d096d17bec42eb42a9fb7;hpb=e104590ce1c4bcc52a19516a1126a327227b58de;p=config%2Fdotfiles.git 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.