From 671b2195c9794895f3155cf2e5e7050e0afdb261 Mon Sep 17 00:00:00 2001 From: Francois Lesueur Date: Sun, 9 Feb 2020 18:31:00 +0100 Subject: [PATCH] adds milxc autocompletion in the vagrant image --- vagrant/files/provision.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vagrant/files/provision.sh b/vagrant/files/provision.sh index 653fadc..03a129c 100755 --- a/vagrant/files/provision.sh +++ b/vagrant/files/provision.sh @@ -77,5 +77,15 @@ echo "ALWAYS_SET_PATH yes" >> /etc/login.defs # enable bash autocompletion cp milxc-completion.bash /etc/bash_completion.d/ +echo -e " +# enable bash completion in interactive shells +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi" >> /etc/bash.bashrc + reboot