summaryrefslogtreecommitdiff
path: root/system/zsh/zprofile
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-13 04:43:24 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-13 04:43:24 +0000
commit4c868930b9c8af6ff6165b02a0c8cd5423139456 (patch)
treea63e62d68cf75238be05b96005f98803034479a9 /system/zsh/zprofile
parent939576404a1853bf009789059c34288420bfd6ec (diff)
downloadpackages-4c868930b9c8af6ff6165b02a0c8cd5423139456.tar.gz
packages-4c868930b9c8af6ff6165b02a0c8cd5423139456.tar.bz2
packages-4c868930b9c8af6ff6165b02a0c8cd5423139456.tar.xz
packages-4c868930b9c8af6ff6165b02a0c8cd5423139456.zip
system/zsh: add /etc/zprofile.d support
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