summaryrefslogtreecommitdiff
path: root/nonsystemd/filesystem/profile
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-05-11 16:23:48 -0300
committerDavid P <megver83@parabola.nu>2018-05-11 16:23:48 -0300
commitce3823eb663c173540da08bf4b2097942935e559 (patch)
tree33820e1770e5bb942aa57fe5d6aee4a71f1dbca2 /nonsystemd/filesystem/profile
parentb64af43366d391e9a960763ebab37dbbd70ded10 (diff)
downloadabslibre-ce3823eb663c173540da08bf4b2097942935e559.tar.gz
abslibre-ce3823eb663c173540da08bf4b2097942935e559.tar.bz2
abslibre-ce3823eb663c173540da08bf4b2097942935e559.zip
nonsystemd/filesystem: add package
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/filesystem/profile')
-rw-r--r--nonsystemd/filesystem/profile40
1 files changed, 40 insertions, 0 deletions
diff --git a/nonsystemd/filesystem/profile b/nonsystemd/filesystem/profile
new file mode 100644
index 000000000..a4f717734
--- /dev/null
+++ b/nonsystemd/filesystem/profile
@@ -0,0 +1,40 @@
+# /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
+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