-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_bashrc
31 lines (27 loc) · 1.11 KB
/
dot_bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# shellcheck shell=bash disable=SC1090
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ "$-" != *i* ]] && return
# Bash options (see: https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html )
shopt -s cdspell # correct spelling mistakes when using cd
shopt -s checkwinsize # check the window size after each command and, if necessary, update the values of LINES and COLUMNS
shopt -s dirspell # correct spelling mistakes in directories
shopt -s globasciiranges # range expressions used in pattern matching behave as if in the traditional C locale when performing comparisons
shopt -s globstar # enable recursive glob matching
shopt -s nullglob # expand non-matching globs to a null string
# Vendor sources
sources=(
/usr/local/share/bash-completion/bash_completion
/usr/local/opt/fzf/shell/*.bash
/usr/share/fzf/*.bash
/opt/homebrew/opt/fzf/shell/*.bash
/opt/homebrew/etc/bash_completion.d/*
/opt/homebrew/etc/profile.d/bash_completion.sh
~/.local/lib/bashrc.d/**/*.sh
)
for f in "${sources[@]}"; do
[[ -f $f ]] && . "$f"
done
unset f sources