Files
ports/core/filesystem/profile
2020-01-11 15:19:10 +08:00

26 lines
391 B
Bash
Executable File

#
# /etc/profile
#
# Set the initial path
export PATH=/bin:/usr/bin
if [ "$(id -u)" -eq 0 ] ; then
export PATH=$PATH:/sbin:/usr/sbin
unset HISTFILE
fi
# Set umask
umask 022
# 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