Move .bashrc.d to .config

This commit is contained in:
Lexi / Zoe 2025-12-05 03:36:38 +01:00
parent 9426ffb672
commit a1fbcddac9
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 9 additions and 7 deletions

10
.bashrc
View file

@ -71,14 +71,16 @@ else
fi
# Include drop-in files
if [[ -d ~/.bashrc.d ]]; then
for f in ~/.bashrc.d/*; do
if [[ -d ~/.config/bashrc.d ]]; then
for f in ~/.config/bashrc.d/*; do
[[ -f $f ]] && source "$f"
done
fi
# Include host-specific bashrc
[[ -f ~/.bashrc.local ]] && source ~/.bashrc.local
# Deprecation warning for old drop-in file locations
if [[ -e ~/.bashrc.d || -e ~/.bashrc.local ]]; then
echo "WARNING: ~/.bashrc.d and ~/.bashrc.local are ignored, please use ~/.config/bashrc.d/ instead."
fi
# Clean up environment variables
unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET