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