bashrc 832 B

12345678910111213141516171819202122232425262728
  1. # $HOME/.bashrc
  2. #
  3. # this file is sourced by all *interactive* bash shells on startup,
  4. # including some apparently interactive shells such as scp and rcp
  5. # that can't tolerate any output. so make sure this doesn't display
  6. # anything or bad things will happen !
  7. # test for an interactive shell. there is no need to set anything
  8. # past this point for scp and rcp, and it's important to refrain from
  9. # outputting anything in those cases.
  10. if [[ $- != *i* ]] ; then
  11. # shell is non-interactive. be done now!
  12. return
  13. fi
  14. # load all files from .shell/bashrc.d directory
  15. if [ -d $HOME/.shellrc/bashrc.d ]; then
  16. for file in $HOME/.shellrc/bashrc.d/*.bash; do
  17. source $file
  18. done
  19. fi
  20. # load all files from .shell/rc.d directory
  21. if [ -d $HOME/.shellrc/rc.d ]; then
  22. for file in $HOME/.shellrc/rc.d/*.sh; do
  23. source $file
  24. done
  25. fi