bashrc/.bashrc

26 lines
450 B
Bash
Raw Normal View History

#!/bin/bash
2016-01-20 17:06:54 +00:00
#
# ~/.bashrc
#
# Thurstylark
#
# 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-20 17:06:54 +00:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# If a directory is given without any command, CD into it.
shopt -s autocd
2016-01-20 17:06:54 +00:00
# Enable extglob
shopt -s extglob
2016-01-20 17:06:54 +00:00
### OTHER CONFIG ###
2016-01-20 17:06:54 +00:00
# Source all *.sh files in ~/.bashrc.d/
# shellcheck source=/dev/null
for f in ~/.bashrc.d/*.sh; do source "$f"; done