summaryrefslogtreecommitdiff
path: root/system/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'system/zsh/zprofile')
-rw-r--r--system/zsh/zprofile7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/zsh/zprofile b/system/zsh/zprofile
index 363d4863c..50cbdaaaa 100644
--- a/system/zsh/zprofile
+++ b/system/zsh/zprofile
@@ -21,4 +21,11 @@ _src_etc_profile
export EDITOR=${EDITOR:-/usr/bin/vim}
export PAGER=${PAGER:-/usr/bin/less}
+if [ -d /etc/zprofile.d ]; then
+ for i in /etc/zprofile.d/*.zsh; do
+ [ -r $i ] && . $i
+ done
+ unset i
+fi
+
unset -f _src_etc_profile