2 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile,v 1.5 2008/05/23 12:02:51 tove Exp $
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
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}
15 # 077 would be more secure, but 022 is generally quite realistic
18 # Set up PATH depending on whether we're root or a normal user.
19 # There's no real reason to exclude sbin paths from the normal user,
20 # but it can make tab-completion easier when they aren't in the
21 # user's PATH to pollute the executable namespace.
23 # It is intentional in the following line to use || instead of -o.
24 # This way the evaluation can be short-circuited and calling whoami is
26 if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
27 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
29 PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
31 export PATH="$HOME/bin:$PATH"
36 for sh in /etc/profile.d/*.sh ; do
37 [ -r "$sh" ] && . "$sh"
44 eval `dircolors --sh /etc/DIR_COLORS`
45 if [[ -n "$LS_COLORS" && -z "$COLORTERM" ]]; then
46 export COLORTERM="ansi"