From e125db3d72be558ad43bf73e600f4a949c07ffe7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 25 Nov 2010 18:30:24 +0100 Subject: [PATCH] zsh/env: Setup lesspipe. --- zsh/env | 6 ++++++ 1 file changed, 6 insertions(+) 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)" -- 2.45.2