Files
ports/core/filesystem/profile
2019-06-11 22:56:03 +08:00

33 lines
507 B
Bash
Executable File

#
# /etc/profile
#
# Set the initial path
export PATH=/bin:/usr/bin
if [ $EUID -eq 0 ] ; then
export PATH=$PATH:/sbin:/usr/sbin
unset HISTFILE
fi
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 022
fi
# Setup some environment variables.
export HISTSIZE=1000
export HISTIGNORE="&:[bf]g:exit"
for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
unset script
done
if [ -f /etc/bashrc ] ; then
. /etc/bashrc
fi