Optionally load options from override file

This commit is contained in:
Sonny Bakker 2022-12-03 19:34:56 +01:00
parent 750d9995e0
commit 828d2c1a71

12
.bashrc
View file

@ -1,6 +1,5 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
#
# If not running interactively, don't do anything
case $- in
*i*) ;;
@ -96,7 +95,12 @@ fi
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
. /etc/bash_completion
fi
# load specific options from override file
if [ -f ~/.bashrc.override ]; then
. ~/.bashrc.override
fi