From: Simon Ruderich Date: Thu, 25 Nov 2010 17:30:24 +0000 (+0100) Subject: zsh/env: Setup lesspipe. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e125db3d72be558ad43bf73e600f4a949c07ffe7;p=config%2Fdotfiles.git zsh/env: Setup lesspipe. --- diff --git a/zsh/env b/zsh/env index 81df0bd..2eced63 100644 --- 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)"