mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-13 05:50:36 +00:00
33 lines
507 B
Bash
Executable File
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
|