2016-01-05 02:45:19 +00:00
|
|
|
# /etc/zsh/zprofile
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile-1,v 1.1 2010/08/15 12:21:56 tove Exp $
|
|
|
|
|
|
|
|
# Load environment settings from profile.env, which is created by
|
|
|
|
# env-update from the files in /etc/env.d
|
2013-03-15 07:37:33 +00:00
|
|
|
if [ -e /etc/profile.env ] ; then
|
|
|
|
. /etc/profile.env
|
|
|
|
fi
|
|
|
|
|
2016-01-05 02:45:19 +00:00
|
|
|
setopt nullglob
|
2013-03-18 12:25:38 +00:00
|
|
|
for sh in /etc/profile.d/*.sh ; do
|
|
|
|
[ -r "$sh" ] && . "$sh"
|
|
|
|
done
|
2016-01-05 02:45:19 +00:00
|
|
|
unsetopt nullglob
|
2013-03-18 12:25:38 +00:00
|
|
|
|
2013-03-18 08:27:26 +00:00
|
|
|
if [ -e "$HOME/.profile" ]; then
|
|
|
|
. "$HOME/.profile"
|
|
|
|
fi
|
|
|
|
|
2013-03-15 07:37:33 +00:00
|
|
|
export EDITOR=${EDITOR:-/usr/bin/vim}
|
|
|
|
export PAGER=${PAGER:-/usr/bin/less}
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
2014-06-27 05:45:18 +00:00
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
2017-11-24 15:44:48 +00:00
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
2013-03-15 07:37:33 +00:00
|
|
|
|
|
|
|
# 077 would be more secure, but 022 is generally quite realistic
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
shopts=$-
|
|
|
|
set -$shopts
|
|
|
|
unset sh shopts
|