2016-04-29 10:18:05 -05:00
|
|
|
#!/bin/bash
|
2016-01-20 11:06:54 -06:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
# Thurstylark
|
2017-02-16 02:23:49 -06:00
|
|
|
#
|
|
|
|
# Reference: https://wiki.thurstylark.com/Bashrc.html
|
2016-01-20 11:06:54 -06:00
|
|
|
|
2019-12-12 14:47:31 -06:00
|
|
|
### BASH CONFIG ###
|
2016-01-21 13:42:34 -06:00
|
|
|
|
2016-01-20 11:06:54 -06:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2019-05-15 22:45:06 -05:00
|
|
|
# If a directory is given without any command, CD into it.
|
|
|
|
shopt -s autocd
|
2016-01-20 11:06:54 -06:00
|
|
|
|
2019-12-16 14:49:59 -06:00
|
|
|
# Enable extglob
|
|
|
|
shopt -s extglob
|
|
|
|
|
2016-01-20 11:06:54 -06:00
|
|
|
|
2019-12-12 14:42:59 -06:00
|
|
|
### OTHER CONFIG ###
|
2016-01-20 11:06:54 -06:00
|
|
|
|
2020-06-12 12:17:52 -05:00
|
|
|
# Source all *.bash files in ~/.bashrc.d/
|
2019-05-15 23:17:05 -05:00
|
|
|
# shellcheck source=/dev/null
|
2020-06-12 12:17:52 -05:00
|
|
|
for f in ~/.bashrc.d/*.bash; do source "$f"; done
|