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 EDITOR=${EDITOR:-/bin/nano}
|
||||||
export PAGER=${PAGER:-/usr/bin/less}
|
export PAGER=${PAGER:-/usr/bin/less}
|
||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
export PATH="/home/${USER}/Apps/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
|
export PATH="/home/${USER}/Apps/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
|
||||||
|
|
||||||
shopts=$-
|
# these do more harm than good
|
||||||
setopt nullglob
|
unset TERMCAP
|
||||||
for sh in /etc/profile.d/*.sh ; do
|
unset MANPATH
|
||||||
[ -r "$sh" ] && . "$sh"
|
|
||||||
done
|
# Load profiles from /etc/profile.d
|
||||||
unsetopt nullglob
|
if test -d /etc/profile.d/; then
|
||||||
set -$shopts
|
for profile in /etc/profile.d/*.sh; do
|
||||||
unset sh shopts
|
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