summaryrefslogtreecommitdiffstats
path: root/.root/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to '.root/etc/profile')
-rw-r--r--.root/etc/profile48
1 files changed, 48 insertions, 0 deletions
diff --git a/.root/etc/profile b/.root/etc/profile
new file mode 100644
index 0000000..21d183c
--- /dev/null
+++ b/.root/etc/profile
@@ -0,0 +1,48 @@
+# /etc/profile
+
+# Append "$1" to $PATH when not already in.
+# This function API is accessible to scripts in /etc/profile.d
+append_path () {
+ case ":$PATH:" in
+ *:"$1":*)
+ ;;
+ *)
+ PATH="${PATH:+$PATH:}$1"
+ esac
+}
+
+# Append default paths
+append_path '/usr/local/sbin'
+append_path '/usr/local/bin'
+append_path '/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
+
+# bash completion test
+if test -f /etc/bash_completion; then
+ . /etc/bash_completion
+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