export LANG=C.UTF-8
export TZ=Asia/Shanghai
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export TERM=xterm-256color
export TMPDIR=/tmp
export PAGER=less
export PS1='[\u@\h \w]$(if [ `id -u` -eq 0 ]; then echo "#"; else echo "$"; fi) '
umask 022

# Load profiles from /etc/profile.d
if [ -d /etc/profile.d ]; then
  for profile in /etc/profile.d/*.sh; do
    if [ -r $profile ]; then
      . $profile
    fi
  done
  unset profile
fi

# Source ~/.bashrc or /etc/bash.bashrc
if [ -n "$BASH_VERSION" ]; then
  if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
  elif [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
  fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
    PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ]; then
    PATH="$HOME/.local/bin:$PATH"
fi
