목차

bash profile 적용 순서

profilebashrcalias 순이라고 생각하면 쉽다.

login shell 의 경우

  1. /etc/profile
  2. /etc/profile.d/*.sh
  3. /etc/profile.local
  4. ~/.profile
  5. /etc/bash.bashrc
  6. /etc/bash_completion.d/*.sh
  7. /etc/bash.bashrc.local
  8. /etc/inputrc
  9. ~/.bashrc
  10. ~/.alias

non-login shell의 경우

  1. /etc/bash.bashrc
  2. /etc/bash_completion.d/*.sh
  3. /etc/bash.bashrc.local
  4. /etc/iputrc
  5. ~/.bashrc
  6. ~/.alias