From 4c868930b9c8af6ff6165b02a0c8cd5423139456 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 13 Nov 2018 04:43:24 +0000 Subject: system/zsh: add /etc/zprofile.d support --- system/zsh/zprofile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'system/zsh/zprofile') 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 -- cgit v1.2.3-60-g2f50