123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- ##### My (demuredemeanor) bashrc sub source script
- # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
- # https://notabug.org/demure/dotfiles/
- # legacy repo http://github.com/demure/dotfiles
- # vim:set syntax=sh:
- ## Inspired by https://github.com/gmarik/dotfiles/blob/master/.bash/bashrc
- so() { [ -s $1 ] && source $1; }
- #so ~/.subbash/profile ## main configuration
- ### Agents ### {{{
- ## These are outside of the function conf to skip the interactive check
- so ~/.subbash/sshagent ## SSH agent, have before export
- so ~/.subbash/sshgpgagent ## SSH GPG agent, have before export
- ### End Agents ### }}}
- so ~/.subbash/export ## Exports
- so ~/.subbash/shopt ## Shopts
- so ~/.subbash/installcheck ## Checks for installs, $MISSING_PROGRAMS
- ### Interactive ### {{{
- if [[ $- == *i* ]]; then
- so ~/.subbash/prompt ## COMMAND_PROMPT function
- so ~/.subbash/alias ## Alias
- so ~/.subbash/function ## Functions
- fi
- ### End Interactive ### }}}
- ## This needs to be after Interactive, to override
- so ~/.subbash/settings ## Machine dependent settings
- ### Overrides ### {{{
- ## Easy per host conf for tracking
- so ~/.subbash/hosts/${HOSTNAME}_conf ## configuration per OS linux/OSX
- ## This is last, so it can override everything.
- # Less fighting with mini installs.
- so ~/.subbash/bashrc.local ## machine specific config. not tracked
- so ~/.bashrc.local ## machine specific config. not tracked
- ### End Overrides ### }}}
- return 0 ## Return 0, so it doesn't show
|