bashrc/.bashrc

26 lines
454 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 *.bash files in ~/.bashrc.d/
# shellcheck source=/dev/null
for f in ~/.bashrc.d/*.bash; do source "$f"; done