PKGBUILDs/core/filesystem/profile

41 lines
759 B
Text
Raw Normal View History

2012-07-24 03:42:50 +00:00
# /etc/profile
2017-12-10 14:03:56 +00:00
# Set our umask
2012-07-24 03:42:50 +00:00
umask 022
2017-12-10 14:03:56 +00:00
# Append our default paths
appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
*)
2018-03-11 18:56:59 +00:00
PATH="${PATH:+$PATH:}$1"
2017-12-10 14:03:56 +00:00
esac
}
appendpath '/usr/local/sbin'
appendpath '/usr/local/bin'
appendpath '/usr/bin'
unset appendpath
2012-07-24 03:42:50 +00:00
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Source global bash config
2015-10-05 18:58:03 +00:00
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
2012-07-24 03:42:50 +00:00
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH