Source '~/.bash_completions' if it exists

master
Hektor Misplon 2024-12-28 13:29:03 +01:00
parent 1f192f94fa
commit 15f1227522
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@
[ -f "$HOME/.bash_aliases/hosts/$HOSTNAME" ] && . "$HOME/.bash_aliases/hosts/$HOSTNAME" [ -f "$HOME/.bash_aliases/hosts/$HOSTNAME" ] && . "$HOME/.bash_aliases/hosts/$HOSTNAME"
[ -f "$HOME/.bash_aliases/private" ] && . "$HOME/.bash_aliases/private" [ -f "$HOME/.bash_aliases/private" ] && . "$HOME/.bash_aliases/private"
# Completions {{{
[ -d "$HOME/.bash_completions" ] && for file in "$HOME/.bash_completions"/*; do
[ -f "$file" ] && . "$file"
done
# }}}
# Host-specific and private configurations # Host-specific and private configurations
[ -f "$HOME/.bashrc.d/hosts/$HOSTNAME" ] && . "$HOME/.bashrc.d/hosts/$HOSTNAME" [ -f "$HOME/.bashrc.d/hosts/$HOSTNAME" ] && . "$HOME/.bashrc.d/hosts/$HOSTNAME"
[ -f "$HOME/.bashrc.d/private" ] && . "$HOME/.bashrc.d/private" [ -f "$HOME/.bashrc.d/private" ] && . "$HOME/.bashrc.d/private"