mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
45 lines
838 B
Bash
45 lines
838 B
Bash
# /etc/profile
|
|
|
|
# Set our umask
|
|
umask 022
|
|
|
|
# Append our default paths
|
|
appendpath () {
|
|
case ":$PATH:" in
|
|
*:"$1":*)
|
|
;;
|
|
*)
|
|
PATH="${PATH:+$PATH:}$1"
|
|
esac
|
|
}
|
|
|
|
appendpath '/usr/local/sbin'
|
|
appendpath '/usr/local/bin'
|
|
appendpath '/usr/bin'
|
|
unset appendpath
|
|
|
|
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, when interactive but not posix or sh mode
|
|
if test "$BASH" &&\
|
|
test "$PS1" &&\
|
|
test -z "$POSIXLY_CORRECT" &&\
|
|
test "${0#-}" != sh &&\
|
|
test -r /etc/bash.bashrc
|
|
then
|
|
. /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
|