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