dotfiles script v0.4.2

- change bash completion from single file to per-directory (~/.bash_completion.d/)
This commit is contained in:
Lexi Stelter 2019-02-19 15:47:19 +01:00
parent 1764e39cb8
commit 9b2fa59ed8
3 changed files with 32 additions and 10 deletions

View file

@ -1,8 +1,11 @@
# ~/.bash_completion - Custom bash auto completions
# Enable bash completion for dotfiles manager (if installed)
[[ -x "$HOME/bin/dotfiles" ]] && source <($HOME/bin/dotfiles bash-completion)
shopt -s nullglob
# Include host-specific bash_completion
[[ -f ~/.bash_completion.local ]] && source ~/.bash_completion.local
# Include all files from ~/.bash_completion.d/
if [[ -d ~/.bash_completion.d ]]; then
for f in ~/.bash_completion.d/*; do
[[ -f "$f" ]] && . "$f"
done
fi