bash_profile 669 B

12345678910111213141516171819202122
  1. # ~/.profile: executed by the command interpreter for login shells.
  2. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
  3. # exists.
  4. # see /usr/share/doc/bash/examples/startup-files for examples.
  5. # the files are located in the bash-doc package.
  6. # the default umask is set in /etc/profile; for setting the umask
  7. # for ssh logins, install and configure the
  8. #umask 023
  9. SHELLRC_HOME="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
  10. # load all files from .shell/login.d directory
  11. if [ -d ${SHELLRC_HOME}/login.d ]; then
  12. for file in ${SHELLRC_HOME}/login.d/*.sh; do
  13. source ${file}
  14. done
  15. fi
  16. if [ -f ${HOME}/.bashrc ]; then
  17. source ${HOME}/.bashrc
  18. fi