sourcer 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. ### Agents ### {{{
  10. ## These are outside of the function conf to skip the interactive check
  11. so ~/.subbash/sshagent ## SSH agent, have before export
  12. so ~/.subbash/sshgpgagent ## SSH GPG agent, have before export
  13. ### End Agents ### }}}
  14. so ~/.subbash/export ## Exports
  15. so ~/.subbash/shopt ## Shopts
  16. so ~/.subbash/installcheck ## Checks for installs, $MISSING_PROGRAMS
  17. ### Interactive ### {{{
  18. if [[ $- == *i* ]]; then
  19. so ~/.subbash/prompt ## COMMAND_PROMPT function
  20. so ~/.subbash/alias ## Alias
  21. so ~/.subbash/function ## Functions
  22. fi
  23. ### End Interactive ### }}}
  24. ## This needs to be after Interactive, to override
  25. so ~/.subbash/settings ## Machine dependent settings
  26. ### Overrides ### {{{
  27. ## Easy per host conf for tracking
  28. so ~/.subbash/hosts/${HOSTNAME}_conf ## configuration per OS linux/OSX
  29. ## This is last, so it can override everything.
  30. # Less fighting with mini installs.
  31. so ~/.subbash/bashrc.local ## machine specific config. not tracked
  32. so ~/.bashrc.local ## machine specific config. not tracked
  33. ### End Overrides ### }}}
  34. return 0 ## Return 0, so it doesn't show