From 3742d8b34552762cc3627dde22975b5c94d33b22 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 10 Feb 2014 12:40:42 +0100 Subject: [PATCH] zsh/rc: Add wrapper function for info. --- zsh/rc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.45.2