]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Add wrapper function for info.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 876bfc785470754268c6317cca4fa7c0cd3a5f98..9e8edd262f67197c44ab3441b53a655f5987f044 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -826,13 +826,9 @@ elif (( $+commands[zathura] )); then
     compdef _xpdf pdf
 fi
 
-# GHCI doesn't use readline, force it if rlwrap is available.
-(( $+commands[rlwrap] )) && ghci() {
-    command rlwrap \
-        --always-readline --complete-filenames -t dumb \
-        --histsize 5000 \
-        --file ~/.shell/rlwrap/ghci \
-        ghci "$@" 2>&1
+# Better viewer for info pages .. just pipe everything into less.
+info() {
+    command info "$@" 2>/dev/null | less
 }