zprofile-5 652 B

123456789101112131415161718192021222324252627
  1. # /etc/zsh/zprofile
  2. # Load environment settings from profile.env, which is created by
  3. # env-update from the files in /etc/env.d
  4. if [[ -e /etc/profile.env ]] ; then
  5. . /etc/profile.env
  6. fi
  7. # You should override these in your ~/.zprofile (or equivalent) for per-user
  8. # settings. For system defaults, you can add a new file in /etc/profile.d/.
  9. export EDITOR=${EDITOR:-/bin/nano}
  10. export PAGER=${PAGER:-/usr/bin/less}
  11. # 077 would be more secure, but 022 is generally quite realistic
  12. umask 022
  13. unset ROOTPATH
  14. shopts=$-
  15. setopt nullglob
  16. for sh in /etc/profile.d/*.sh ; do
  17. [[ -r "${sh}" ]] && . "${sh}"
  18. done
  19. unsetopt nullglob
  20. set -$shopts
  21. unset sh shopts