From 7c2e4473a4e474cdbaec560f9a97b333c873fd58 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Mon, 17 Feb 2020 13:35:38 +0100
Subject: Add autocompletion
---
.bashrc | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
(limited to '.bashrc')
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"
--
cgit v1.1