]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Add wrapper function for info.
authorSimon Ruderich <simon@ruderich.org>
Mon, 10 Feb 2014 11:40:42 +0000 (12:40 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 10 Feb 2014 11:40:42 +0000 (12:40 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 09264ed39e0588f4aac8a732bfc6ad190726cb8d..9e8edd262f67197c44ab3441b53a655f5987f044 100644 (file)
--- 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