diff options
Diffstat (limited to 'main/zsh/zprofile')
-rw-r--r-- | main/zsh/zprofile | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/main/zsh/zprofile b/main/zsh/zprofile index 5e214759d95..9e3fd974917 100644 --- a/main/zsh/zprofile +++ b/main/zsh/zprofile @@ -1,19 +1,10 @@ +# System-wide .zprofile file for zsh(1) - sourced only for login shells. # -# /etc/zprofile and ~/.zprofile are run for login shells -# - -_src_etc_profile() -{ - # Make /etc/profile happier, and have possible ~/.zshenv options like - # NOMATCH ignored. - # - emulate -L ksh +# Global Order: zshenv, zprofile, zshrc, zlogin - # source profile - if [ -f /etc/profile ]; then - source /etc/profile - fi -} -_src_etc_profile +# Source /etc/profile to the current shell. +if [ -f /etc/profile ]; then + emulate sh -c 'source /etc/profile' +fi -unset -f _src_etc_profile +# vim: set ft=zsh ts=4: |