]> git.draconx.ca Git - zshconf.git/blob - zprofile
Add functions for manipulating PATH, and use them to set the default.
[zshconf.git] / zprofile
1 # /etc/zsh/zprofile
2 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile,v 1.5 2008/05/23 12:02:51 tove Exp $
3
4 # Load environment settings from profile.env, which is created by
5 # env-update from the files in /etc/env.d
6 if [ -e /etc/profile.env ] ; then
7         . /etc/profile.env
8 fi
9
10 # You should override these in your ~/.zprofile (or equivalent) for per-user
11 # settings.  For system defaults, you can add a new file in /etc/profile.d/.
12 export EDITOR=${EDITOR:-/usr/bin/vim}
13 export PAGER=${PAGER:-/usr/bin/less}
14
15 # 077 would be more secure, but 022 is generally quite realistic
16 umask 022
17
18 # Setup the default path.
19 path_front /{bin,sbin} /usr/{bin,sbin} /usr/local/{bin,sbin} $HOME/bin
20
21 shopts=$-
22 setopt nullglob
23 for sh in /etc/profile.d/*.sh ; do
24         [ -r "$sh" ] && . "$sh"
25 done
26 unsetopt nullglob
27 set -$shopts
28 unset sh shopts
29
30 # Setup colours
31 eval `dircolors --sh /etc/DIR_COLORS`
32 if [[ -n "$LS_COLORS" && -z "$COLORTERM" ]]; then
33         export COLORTERM="ansi"
34 fi