Install bash completion for argcomplete
Update version to 0.4.0
refs: #4629, #4631
Change-Id: I2319a37fc1ba6587528c4ed2eadf727c3c0f6526
diff --git a/install.sh b/install.sh
index a22e22d..d75a796 100755
--- a/install.sh
+++ b/install.sh
@@ -305,12 +305,14 @@
function argcomplete {
if [[ $SHELL == "/bin/bash" ]]; then
+ $install bash-completion
$install python-argcomplete
if ! grep -q 'eval "$(register-python-argcomplete minindn)"' ~/.bashrc; then
echo 'eval "$(register-python-argcomplete minindn)"' >> ~/.bashrc
fi
source ~/.bashrc
elif [[ $SHELL == "/bin/zsh" ]] || [[ $SHELL == "/usr/bin/zsh" ]]; then
+ $install bash-completion
$install python-argcomplete
if ! grep -z -q 'autoload bashcompinit\sbashcompinit\seval "$(register-python-argcomplete minindn)"' ~/.zshrc; then
echo -e 'autoload bashcompinit\nbashcompinit\neval "$(register-python-argcomplete minindn)"' >> ~/.zshrc
@@ -373,4 +375,4 @@
esac
done
shift $(($OPTIND - 1))
-fi
\ No newline at end of file
+fi