Move .bashrc.d to .config
This commit is contained in:
parent
9426ffb672
commit
a1fbcddac9
4 changed files with 9 additions and 7 deletions
10
.bashrc
10
.bashrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue