diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-03-27 14:55:38 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-03-27 14:55:38 +0100 |
commit | ca92b4e34be84abf75b2c9366ba2a679ea0eac51 (patch) | |
tree | 6241f35cf012cbae92162ba294a9e5bae6149246 | |
parent | 816cbc1a87593a93fe5eaea706ed1e3bfddb959d (diff) |
bash: add script for loading custom completions
-rw-r--r-- | bash/bash_completion | 7 | ||||
-rw-r--r-- | install.conf.yaml | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bash/bash_completion b/bash/bash_completion new file mode 100644 index 0000000..9fd9617 --- /dev/null +++ b/bash/bash_completion @@ -0,0 +1,7 @@ +COMPLETION_DIR=~/.bash_completion.d/ + +if [[ -d $COMPLETION_DIR && -r $COMPLETION_DIR && -x $COMPLETION_DIR ]]; then + for i in $(LC_ALL=C command ls "$COMPLETION_DIR"); do + . "$COMPLETION_DIR/$i" + done +fi diff --git a/install.conf.yaml b/install.conf.yaml index 869b6da..346e034 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -1,4 +1,5 @@ - create: + - ~/.bash_completion.d - ~/.cache/vim/bkp - ~/.cache/vim/swap - ~/.config/bash @@ -17,6 +18,7 @@ ~/.local/bin/ups: bin/ups ~/.config/bash/prompt: bash/prompt ~/.bashrc: bash/bashrc + ~/.bash_completion: bash/bash_completion ~/.gdbinit: dotfiles/gdbinit ~/.gitconfig: dotfiles/gitconfig ~/.local/var/cron/daily/dotfiles_status: cron/dotfiles_status |