# 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


[ -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
