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 fi
# Include drop-in files # Include drop-in files
if [[ -d ~/.bashrc.d ]]; then if [[ -d ~/.config/bashrc.d ]]; then
for f in ~/.bashrc.d/*; do for f in ~/.config/bashrc.d/*; do
[[ -f $f ]] && source "$f" [[ -f $f ]] && source "$f"
done done
fi fi
# Include host-specific bashrc # Deprecation warning for old drop-in file locations
[[ -f ~/.bashrc.local ]] && source ~/.bashrc.local 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 # Clean up environment variables
unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET

View File

@ -1,5 +1,5 @@
# #
# ~/.bashrc.d/10_common_aliases.sh -- Collection of common bash aliases and functions # ~/.config/bashrc.d/10_common.sh -- Collection of common bash aliases and functions
# #
# Shortcut aliases # Shortcut aliases

View File

@ -1,5 +1,5 @@
# #
# ~/.bashrc.d/30_desktop.sh -- Aliases and functions for desktop environments # ~/.config/bashrc.d/30_desktop.sh -- Aliases and functions for desktop environments
# #
# Open files according to MIME type # Open files according to MIME type

View File

@ -1,5 +1,5 @@
# #
# ~/.bashrc.d/60_server.sh -- Custom .bashrc additions for server environments # ~/.config/bashrc.d/60_server.sh -- Custom .bashrc additions for server environments
# #
# Set this alias only on hosts where restic is installed # Set this alias only on hosts where restic is installed