]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
603c79134041e4e48c26332a85227a19d23cddcc
[config/dotfiles.git] / zsh / env
1 # Zsh configuration file for environment related options.
2
3 # Copyright (C) 2011-2013  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 # Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less.
30 # Useful in combination with the "p" alias. Taken from Debian's default bash
31 # files. Thanks.
32 if [[ -x /usr/bin/lesspipe ]]; then
33     eval "$(SHELL=/bin/sh lesspipe)" || echo "Broken lesspipe!" >&2
34 fi
35
36
37 source_config ~/.zsh/env.local
38
39 source_debug ". ~/.zsh/env (done)"
40
41 # vim: ft=zsh