diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-13 04:43:24 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-13 04:43:24 +0000 |
commit | 4c868930b9c8af6ff6165b02a0c8cd5423139456 (patch) | |
tree | a63e62d68cf75238be05b96005f98803034479a9 /system/zsh/zprofile | |
parent | 939576404a1853bf009789059c34288420bfd6ec (diff) | |
download | packages-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/zprofile | 7 |
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 |