1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-09-02 01:34:57 +00:00
|
|
|
#
|
1994-09-28 13:33:01 +00:00
|
|
|
# System-wide .profile file for sh(1).
|
2000-07-27 11:39:33 +00:00
|
|
|
#
|
|
|
|
# For the setting of languages and character sets please see
|
|
|
|
# login.conf(5) and in particular the charset and lang options.
|
1994-12-05 19:46:35 +00:00
|
|
|
# For full locales list check /usr/share/locale/*
|
1998-04-10 16:13:29 +00:00
|
|
|
# You should also read the setlocale(3) man page for information
|
|
|
|
# on how to achieve more precise control of locale settings.
|
2000-07-27 11:39:33 +00:00
|
|
|
#
|
2010-05-15 17:49:56 +00:00
|
|
|
# Check system messages
|
|
|
|
# msgs -q
|
1996-10-19 20:02:40 +00:00
|
|
|
# Allow terminal messages
|
|
|
|
# mesg y
|
2022-09-09 13:08:43 +00:00
|
|
|
|
|
|
|
# Load each file in /etc/profile.d/, then /usr/local/etc/profile, then
|
|
|
|
# each file in /usr/local/etc/profile.d/.
|
|
|
|
_loaded=${_loaded:-/etc/profile}
|
|
|
|
export _loaded
|
|
|
|
for _dir in /etc /usr/local/etc ; do
|
|
|
|
for _file in "${_dir}"/profile "${_dir}"/profile.d/* ; do
|
|
|
|
if [ -f "${_file}" ] ; then
|
|
|
|
case :${_loaded}: in
|
|
|
|
*:"${_file}":*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
_loaded="${_loaded:+${_loaded}:}${_file}"
|
|
|
|
. "${_file}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
unset _loaded _dir _file
|