26 lines
450 B
Bash
26 lines
450 B
Bash
#!/bin/bash
|
|
#
|
|
# ~/.bashrc
|
|
#
|
|
# Thurstylark
|
|
#
|
|
# Reference: https://wiki.thurstylark.com/Bashrc.html
|
|
|
|
### BASH CONFIG ###
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
# If a directory is given without any command, CD into it.
|
|
shopt -s autocd
|
|
|
|
# Enable extglob
|
|
shopt -s extglob
|
|
|
|
|
|
### OTHER CONFIG ###
|
|
|
|
# Source all *.sh files in ~/.bashrc.d/
|
|
# shellcheck source=/dev/null
|
|
for f in ~/.bashrc.d/*.sh; do source "$f"; done
|