zsh/zprofile

46 lines
991 B
Plaintext
Raw Normal View History

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 $
append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
2016-01-05 02:45:19 +00:00
# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
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
if [ -e "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
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"
export XDG_DATA_HOME="$HOME/.local/share"
# 077 would be more secure, but 022 is generally quite realistic
umask 022
shopts=$-
set -$shopts
unset sh shopts
2022-09-02 11:10:19 +00:00
if [[ $TTY == /dev/tty1 ]]; then
2024-07-15 23:02:58 +00:00
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
2022-09-02 11:10:19 +00:00
exec startx :1
fi