cleaned up zprofile, enabled dir colors

This commit is contained in:
Martin Sekera 2019-09-28 13:00:17 +02:00
parent 164a5b7a76
commit 2b6abc3f32

View file

@ -1,21 +1,19 @@
# Load environment settings from profile.env, which is created by
# a platform tool (e.g. eclectic env update, env-update) from the files in /etc/env.d
if [ -e /etc/profile.env ] ; then
. /etc/profile.env
fi
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}
umask 022
export PATH="/home/${USER}/Apps/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
shopts=$-
setopt nullglob
for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
# these do more harm than good
unset TERMCAP
unset MANPATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unsetopt nullglob
set -$shopts
unset sh shopts
unset profile
fi
# Load ls_colors
eval "$(dircolors -b)"