aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-02-17 13:35:38 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-02-17 13:35:38 +0100
commit7c2e4473a4e474cdbaec560f9a97b333c873fd58 (patch)
tree1f804cb1fdc41454143e46d2a1352fd537d3d73e /.bashrc
parent797eca7cb514c76f83d4d3b0df711ed280184276 (diff)
Add autocompletion
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index e6dd4cd..c5fbadd 100644
--- a/.bashrc
+++ b/.bashrc
@@ -24,8 +24,15 @@ bind -m vi-insert "\C-u":kill-region
bind -m vi-insert "\C-y":yank
# Configure Bash options
-[ $DEBUG_DOTFILES ] && echo " Setting autocompletions"
+[ $DEBUG_DOTFILES ] && echo " Setting Bash options"
shopt -s histappend
+shopt -s progcomp
+
+if [ -r "$HOME/.config/shell/vendor/bash/feature-auto-completion/bash_completion" ]
+then
+ [ $DEBUG_DOTFILES ] && echo " Setting up autocompletion"
+ . "$HOME/.config/shell/vendor/bash/feature-auto-completion/bash_completion"
+fi
# Set up the prompt
[ $DEBUG_DOTFILES ] && echo " Setting PS1"