ShadowArch/ShadowArch/profile

39 lines
762 B
Plaintext
Raw Normal View History

2017-06-23 13:56:31 -05:00
# /etc/profile
#Set our umask
umask 022
# Set our default path
2017-06-23 14:17:07 -05:00
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/bin"
2017-06-23 13:56:31 -05:00
export PATH
IFS="
"
export IFS
# 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
2017-10-10 10:37:30 -05:00
if test "$PS1" && test "$BASH" && test -r /etc/bashrc; then
. /etc/bashrc
2017-06-23 13:56:31 -05:00
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
2018-02-14 03:20:12 -06:00
if /bin/bash -c "[[ $(tty) =~ \"/dev/tty\" ]]" &>/dev/null; then
whoami=`whoami`
if [ `id | grep -c \(tty-allow\)` -ne 1 ] && [ `whoami` != "root" ]; then
exit
fi
fi
2017-06-23 13:56:31 -05:00