summaryrefslogtreecommitdiff
path: root/tree/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to 'tree/etc/profile')
-rw-r--r--tree/etc/profile50
1 files changed, 50 insertions, 0 deletions
diff --git a/tree/etc/profile b/tree/etc/profile
new file mode 100644
index 0000000..5c39966
--- /dev/null
+++ b/tree/etc/profile
@@ -0,0 +1,50 @@
+# Please note, the following section may be REMOVED at any time.
+# It is a remnant of the Gentoo Portage bootstrap system that was used to
+# create the initial versions of Adélie Linux.
+
+# Load environment settings from profile.env, which is created by
+# env-update from the files in /etc/env.d
+if [ -e /etc/profile.env ] ; then
+ . /etc/profile.env
+fi
+
+# End deprecated Gentoo Portage section
+
+
+UID=${UID:-`id -u`}
+
+
+[ -x /usr/bin/vim ] && export EDITOR=${EDITOR:-/usr/bin/vim}
+[ -x /usr/bin/less ] && export PAGER=${PAGER:-/usr/bin/less}
+
+
+if [ $UID -eq 0 ]; then
+ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+ PS1="$(uname -n 2>/dev/null) # "
+else
+ PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
+ PS1="$(whoami 2>/dev/null)@$(uname -n 2>/dev/null) \$ "
+fi
+export PATH
+
+
+# Users don't want anyone else writing their files. System applications allow
+# their group-mates to write.
+if [ $UID -gt 499 ]; then
+ umask 027
+else
+ umask 007
+fi
+
+
+if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
+ [ -f /etc/bash/bashrc ] && . /etc/bash/bashrc
+fi
+
+
+if [ -d /etc/profile.d ]; then
+ for i in /etc/profile.d/*.sh; do
+ [ -r $i ] && . $i
+ done
+ unset i
+fi