From: Simon Ruderich Date: Mon, 10 Feb 2014 11:40:42 +0000 (+0100) Subject: zsh/rc: Add wrapper function for info. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=3742d8b34552762cc3627dde22975b5c94d33b22;p=config%2Fdotfiles.git zsh/rc: Add wrapper function for info. --- diff --git a/zsh/rc b/zsh/rc index 09264ed..9e8edd2 100644 --- a/zsh/rc +++ b/zsh/rc @@ -826,6 +826,11 @@ elif (( $+commands[zathura] )); then compdef _xpdf pdf fi +# Better viewer for info pages .. just pipe everything into less. +info() { + command info "$@" 2>/dev/null | less +} + # OS SPECIFIC SETTINGS