cleaned up zprofile, enabled dir colors
This commit is contained in:
parent
164a5b7a76
commit
2b6abc3f32
1 changed files with 14 additions and 16 deletions
|
@ -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"
|
||||
done
|
||||
unsetopt nullglob
|
||||
set -$shopts
|
||||
unset sh shopts
|
||||
# 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
|
||||
unset profile
|
||||
fi
|
||||
|
||||
# Load ls_colors
|
||||
eval "$(dircolors -b)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue