1 # Zsh configuration file for environment related options.
3 # Copyright (C) 2011-2012 Simon Ruderich
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this file. If not, see <http://www.gnu.org/licenses/>.
21 source_debug ". ~/.zsh/env"
23 source_config ~/.shell/env
26 # Make sure elements in PATH are unique.
29 # Color man pages viewed with less, thanks to
30 # http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
32 # Color bold strings in bold blue.
33 export LESS_TERMCAP_md=$'\e[01;34m'
34 export LESS_TERMCAP_me=$'\e[0m'
35 # Color underlined strings in bold yellow and underlined.
36 export LESS_TERMCAP_us=$'\e[01;4;33m'
37 export LESS_TERMCAP_ue=$'\e[0m'
38 # Color standout mode in bold black with yellow background.
39 export LESS_TERMCAP_so=$'\e[01;30;43m'
40 export LESS_TERMCAP_se=$'\e[0m'
43 # Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less.
44 # Useful in combination with the "p" alias. Taken from Debian's default bash
46 if [[ -x /usr/bin/lesspipe ]]; then
47 eval "$(SHELL=/bin/sh lesspipe)" || echo "Broken lesspipe!" >&2
51 source_config ~/.zsh/env.local
53 source_debug ". ~/.zsh/env (done)"