+# Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less.
+# Useful in combination with the "p" alias. Inspired by Debian's default bash
+# files. Thanks.
+if test -x /usr/bin/lesspipe; then
+ # Don't use eval $(lesspipe) which breaks on a few systems (e.g. Gentoo)
+ # due to a different lesspipe implementation.
+ LESSOPEN='| /usr/bin/lesspipe %s'
+ LESSCLOSE='/usr/bin/lesspipe %s %s'
+ export LESSOPEN LESSCLOSE
+fi