From 2b6abc3f325348671d0608dd5b00ad07bbb9f9bc Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sat, 28 Sep 2019 13:00:17 +0200 Subject: [PATCH] cleaned up zprofile, enabled dir colors --- etc/zsh/zprofile | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/etc/zsh/zprofile b/etc/zsh/zprofile index 70a8814..fdd3318 100644 --- a/etc/zsh/zprofile +++ b/etc/zsh/zprofile @@ -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)"