Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tab auto completion not working (/etc/bash_completion not working)?

Tags:

bash

i am on an old ubuntu environment (Ubuntu 12.04.5 LTS) and bash_completion is not working even i included it in my .bashrc:

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

i tried including /etc/bash_bashrc, but still not working:

if [ -f /etc/bash_bashrc ]; then
. /etc/bash_bashrc
fi

user@old_skunk:~:$ cd loca-bash: exclude: unbound variable

user@old_skunk:~:$ls -al loca-bash: !ref: unbound variable
-bash: !ref: unbound variable
-bash: !ref: unbound variable
-bash: words[i]: unbound variable
like image 707
ipfreak Avatar asked Apr 01 '26 22:04

ipfreak


1 Answers

I used this script and everything is well

sudo apt-get install --reinstall bash-completion 
like image 90
عڪنابيل Nabilinux Avatar answered Apr 08 '26 07:04

عڪنابيل Nabilinux



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!