sourcer 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ##### My (demuredemeanor) bashrc sub source script
  2. # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
  3. # https://notabug.org/demure/dotfiles/
  4. # legacy repo http://github.com/demure/dotfiles
  5. # vim:set syntax=sh:
  6. ## Inspired by https://github.com/gmarik/dotfiles/blob/master/.bash/bashrc
  7. so() { [ -s $1 ] && source $1; }
  8. #so ~/.subbash/profile ## main configuration
  9. so ~/.subbash/export ## Exports
  10. so ~/.subbash/shopt ## Shopts
  11. so ~/.subbash/installcheck ## Checks for installs, $MISSING_PROGRAMS
  12. so ~/.subbash/sshagent ## SSH agent, have before settings
  13. ### Interactive ### {{{
  14. if [[ $- == *i* ]]; then
  15. so ~/.subbash/prompt ## COMMAND_PROMPT function
  16. so ~/.subbash/alias ## Alias
  17. so ~/.subbash/function ## Functions
  18. fi
  19. ### End Interactive ### }}}
  20. ## This needs to be after Interactive, to override
  21. so ~/.subbash/settings ## Machine dependent settings
  22. ### Overrides ### {{{
  23. ## Easy per box conf for tracking
  24. so ~/.subbash/${HOSTNAME}_profile ## configuration per OS linux/OSX
  25. ## This is last, so it can override everything.
  26. # Less fighting with mini installs.
  27. so ~/.subbash/bashrc.local ## machine specific config. not tracked
  28. ### End Overrides ### }}}
  29. return 0 ## Return 0, so it doesn't show