]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
zsh/env: Setup lesspipe.
[config/dotfiles.git] / zsh / env
1 # Zsh configuration file for environment related options.
2
3
4 . ~/.shell/functions
5
6 source_debug ". ~/.zsh/env"
7
8 source_config ~/.shell/env
9
10
11 # Make sure elements in PATH are unique.
12 typeset -U path PATH
13
14 # Color man pages viewed with less, thanks to
15 # http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
16 #
17 # Color bold strings in bold blue.
18 export LESS_TERMCAP_md=$'\e[01;34m'
19 export LESS_TERMCAP_me=$'\e[0m'
20 # Color underlined strings in bold yellow and underlined.
21 export LESS_TERMCAP_us=$'\e[04;1;33m'
22 export LESS_TERMCAP_ue=$'\e[0m'
23
24
25 # Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less.
26 # Useful in combination with the "p" alias. Taken from Debian's default bash
27 # files. Thanks.
28 [[ -x /usr/bin/lesspipe ]] && eval "$(SHELL=/bin/sh lesspipe)"
29
30
31 source_config ~/.zsh/env.local
32
33 source_debug ". ~/.zsh/env (done)"
34
35 # vim: ft=zsh