]> git.draconx.ca Git - zshconf.git/blob - zprofile
zprofile: Cleanup.
[zshconf.git] / zprofile
1 # Load environment settings from profile.env, which is created by env-update
2 # from the files in /etc/env.d
3 if [[ -e /etc/profile.env ]]; then
4         source /etc/profile.env
5 fi
6
7 # Default user settings
8 export EDITOR=${EDITOR:-/usr/bin/vim}
9 export PAGER=${PAGER:-/usr/bin/less}
10 umask 022
11
12 # Default path
13 path_front /{bin,sbin} /usr/{bin,sbin} /usr/local/{bin,sbin} $HOME/bin
14
15 shopts=$-
16 setopt nullglob
17
18 for sh in /etc/profile.d/*.sh ; do
19         if [[ -r $sh ]]; then
20                 source $sh
21         fi
22 done
23
24 unsetopt nullglob
25 set -$shopts
26 unset sh shopts
27
28 # Setup colours
29 eval `dircolors --sh /etc/DIR_COLORS`
30 if [[ -n "$LS_COLORS" && -z "$COLORTERM" ]]; then
31         export COLORTERM="ansi"
32 fi