2009-03-27 11:34:11 +00:00
|
|
|
# /etc/profile
|
|
|
|
|
|
|
|
# System wide environment and startup programs, for login setup
|
|
|
|
# Functions and aliases go in /etc/bashrc
|
|
|
|
|
2012-05-03 08:19:31 +00:00
|
|
|
#Set our umask
|
|
|
|
umask 022
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2012-05-03 08:19:31 +00:00
|
|
|
# Set our default path
|
2012-07-11 20:28:20 +00:00
|
|
|
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin"
|
2012-05-03 08:19:31 +00:00
|
|
|
export PATH
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2012-05-03 08:19:31 +00:00
|
|
|
# Load profiles from /etc/profile.d
|
|
|
|
if [ -d /etc/profile.d/ ]; then
|
|
|
|
for f in /etc/profile.d/*.sh; do
|
2012-05-03 08:20:59 +00:00
|
|
|
[ -r "$f" ] && . "$f"
|
2012-05-03 08:19:31 +00:00
|
|
|
done
|
|
|
|
unset f
|
2009-03-27 11:34:11 +00:00
|
|
|
fi
|
|
|
|
|
2012-05-03 08:19:31 +00:00
|
|
|
# Source global bash config
|
2012-05-03 08:22:53 +00:00
|
|
|
if [ -n "$PS1" -a -n "$BASH" -a -r /etc/bashrc ]; then
|
2012-05-03 08:19:31 +00:00
|
|
|
. /etc/bashrc
|
2009-03-27 11:34:11 +00:00
|
|
|
fi
|