]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/env: Setup lesspipe.
authorSimon Ruderich <simon@ruderich.org>
Thu, 25 Nov 2010 17:30:24 +0000 (18:30 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 25 Nov 2010 17:30:24 +0000 (18:30 +0100)
zsh/env

diff --git a/zsh/env b/zsh/env
index 81df0bd32facb7a00073eb2d5c03dc93dd7f8cb4..2eced63afa66170440ccbd1b9ac8137331d62eb2 100644 (file)
--- a/zsh/env
+++ b/zsh/env
@@ -22,6 +22,12 @@ export LESS_TERMCAP_us=$'\e[04;1;33m'
 export LESS_TERMCAP_ue=$'\e[0m'
 
 
+# Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less.
+# Useful in combination with the "p" alias. Taken from Debian's default bash
+# files. Thanks.
+[[ -x /usr/bin/lesspipe ]] && eval "$(SHELL=/bin/sh lesspipe)"
+
+
 source_config ~/.zsh/env.local
 
 source_debug ". ~/.zsh/env (done)"