]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
57a71e3ab863d3304601480c7ca7f574c42533a2
[config/dotfiles.git] / zsh / env
1 # Zsh configuration file for environment related options.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
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.
9 #
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.
14 #
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/>.
17
18
19 . ~/.shell/functions
20
21 source_debug ". ~/.zsh/env"
22
23 source_config ~/.shell/env
24
25
26 # Make sure elements in PATH are unique.
27 typeset -U path PATH
28
29 # Color man pages viewed with less, thanks to
30 # http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
31 #
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'
41
42
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
45 # files. Thanks.
46 if [[ -x /usr/bin/lesspipe ]]; then
47     eval "$(SHELL=/bin/sh lesspipe)" || echo "Broken lesspipe!" >&2
48 fi
49
50
51 source_config ~/.zsh/env.local
52
53 source_debug ". ~/.zsh/env (done)"
54
55 # vim: ft=zsh