sourcer 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. ## Uses:
  10. ## export ENV_NAME=$(uname -s|tr 'A-Z' 'a-z')
  11. #so ~/.subbash/${ENV_NAME}_profile # configuration per OS linux/OSX
  12. #so ~/.subbash/common # common stuff or overriding
  13. so ~/.subbash/export # Exports
  14. so ~/.subbash/shopt # Shopts
  15. so ~/.subbash/installcheck # Checks for installs, $MISSING_PROGRAMS
  16. so ~/.subbash/sshagent # SSH agent, have before settings
  17. so ~/.subbash/gpgagent # GPG agent, have before settings
  18. ### Interactive ### {{{
  19. if [[ $- == *i* ]]; then
  20. so ~/.subbash/prompt # COMMAND_PROMPT function
  21. so ~/.subbash/alias # Alias
  22. so ~/.subbash/function # Functions
  23. fi
  24. ### End Interactive ### }}}
  25. ## This needs to be after Interactive, to override
  26. so ~/.subbash/settings # Machine dependent settings
  27. ## This is last, so it can override everything. Less fighting with mini installs.
  28. so ~/.subbash/bashrc.local # machine specific config. not tracked
  29. return 0 # Return 0, so it doesn't show