2
I am running a minimal Debian installation that comes with practically nothing installed. I am trying to get bash auto-complete working. I have looked over all the questions on this subject in superuser and askubuntu sites and this is what I have found.
I understand that I need to install bash-completion. I installed that on my system. I found I have to have this in my $HOME/.bashrc
file:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
That was already there. I read somewhere that it should be added to the /etc/profile
file. I did that. I logged out and logged back in and it does not work. I added && echo "OK"
to the files and when I load the terminal it says OK so I know its running it.
Auto-complete for programs and paths works, but that always worked even before I installed bash-completion. The main thing that doesn't work that is bothering me is apt. If I say sudo apt install ged
and then hit tab twice it will not give a list of packages that start with that string like it does in Ubuntu and other OSs.
So basically, how can I get bash-completion to work with apt? Thank you in advance!
Sounds worthy of an upstream bug report, if you haven't already! – Toby Speight – 2019-10-09T18:35:14.813
Are you able to reproduce on a fresh install? If no, don't report upstream! – dirdi – 2019-10-09T18:48:25.867
Yes, to reproduce I just try to autocomplete in
ubuntu:18.04
orubuntu:16.04
docker container. It fails all the times. – Ruben Alves – 2019-10-10T18:18:48.753