From bd31127601e65991ed6a7c21d7b99ccee539a1ea Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 6 Sep 2016 13:26:14 -0700 Subject: [PATCH] Add system_shell_profile --- resources/system_shell_profile.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 resources/system_shell_profile.sh diff --git a/resources/system_shell_profile.sh b/resources/system_shell_profile.sh new file mode 100644 index 00000000..e965056d --- /dev/null +++ b/resources/system_shell_profile.sh @@ -0,0 +1,27 @@ +# /etc/profile + +#Set our umask +umask 022 + +# Set our default path only if path does not exist +${PATH:="/usr/local/sbin:/usr/local/bin:/usr/bin"} +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 +if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && 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