LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get autocomplete (https://www.linuxquestions.org/questions/linux-software-2/apt-get-autocomplete-810517/)

Razgorov 05-27-2010 01:47 PM

apt-get autocomplete
 
Hey all!

I used to run Sidux and every time I wanted a package I could use the auto-complete with tab like I'm used to in BASH. My girlfriend uses Ubuntu and it didn't work there. Now I switched to Debian, and it doesn't work there either.
I tried the usual suspects (man bash, man apt, man apt-get, info, --help and google :-)

Does anyone have an idea how I can switch the completion back on?

Thanks in advance!

AlucardZero 05-27-2010 02:21 PM

Install bash-completion

Razgorov 05-31-2010 03:32 PM

SOLVED apt-get auto-comletion
 
Hey all!

Apt-get is autocompleting again!

I added the folowing in /root/.bashrc

Quote:

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
After that, just exit as root, give su again, and its ready to use.
Since one can only use apt-get as root, there is no real need for puting it in your personal ~/.bashrc

Thank you Koen Vervloesem
Thanks all!


All times are GMT -5. The time now is 12:17 PM.