diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-24 07:04:18 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-24 07:04:18 -0500 |
commit | 3663c31914e896b72bcec6b56f17e50ebdd44e6c (patch) | |
tree | f5543b8a7c172bb98c409b6af11a1b235e26c9d5 /tree/etc/profile | |
download | adelie-base-3663c31914e896b72bcec6b56f17e50ebdd44e6c.tar.gz adelie-base-3663c31914e896b72bcec6b56f17e50ebdd44e6c.tar.bz2 adelie-base-3663c31914e896b72bcec6b56f17e50ebdd44e6c.tar.xz adelie-base-3663c31914e896b72bcec6b56f17e50ebdd44e6c.zip |
Initial commitv0.2
Diffstat (limited to 'tree/etc/profile')
-rw-r--r-- | tree/etc/profile | 50 |
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 |