clean up zshrc, zprofile

This commit is contained in:
Alexander Gehrke (crater2150) 2016-01-05 03:45:19 +01:00
parent b87c12e662
commit 40c5d167af
2 changed files with 10 additions and 7 deletions

View file

@ -1,11 +1,17 @@
# gentoo specific
# /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
if [ -e /etc/profile.env ] ; then
. /etc/profile.env
fi
setopt nullglob
for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
done
unsetopt nullglob
if [ -e "$HOME/.profile" ]; then
. "$HOME/.profile"
@ -28,9 +34,5 @@ export PATH
unset ROOTPATH
shopts=$-
setopt nullglob
unsetopt nullglob
set -$shopts
unset sh shopts