Move .bashrc.d to .config
This commit is contained in:
parent
9426ffb672
commit
a1fbcddac9
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue