2 # System-wide .profile file for sh(1).
4 # For the setting of languages and character sets please see
5 # login.conf(5) and in particular the charset and lang options.
6 # For full locales list check /usr/share/locale/*
7 # You should also read the setlocale(3) man page for information
8 # on how to achieve more precise control of locale settings.
10 # Check system messages
12 # Allow terminal messages
15 # Load each .sh file in /etc/profile.d/, then /usr/local/etc/profile,
16 # then each .sh file in /usr/local/etc/profile.d/.
17 _loaded=${_loaded:-/etc/profile}
19 for _dir in /etc /usr/local/etc ; do
20 for _file in "${_dir}"/profile "${_dir}"/profile.d/*.sh ; do
21 if [ -f "${_file}" ] ; then
26 _loaded="${_loaded:+${_loaded}:}${_file}"
33 unset _loaded _dir _file