LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   TAB button doesn't work always (http://www.linuxquestions.org/questions/debian-26/tab-button-doesnt-work-always-816360/)

Mr. Alex 06-25-2010 10:33 AM

TAB button doesn't work always
 
When I type in "sudo apt-get in" and press TAB, it completes word "install".
But when I logged in as super user and type in "apt-get in" and press TAB, it only beeps from system unit and doesn't complete "install". Why?

Debian 5.0.4 stable. Gnome. "gnome-terminal".

paulsm4 06-25-2010 10:49 AM

Look here

Mr. Alex 06-26-2010 12:36 AM

Thanks, but can't find an answer there...

paulsm4 06-26-2010 01:58 AM

Hi -

What part of "/etc/bash_completion" didn't work?

The advice about "apt-get install bash-completion" was good, except that it sounds like you already have it. It just doesn't work for "root".

I believe all you probably have to do is source /etc/bash_completion in root's environment (e.g. in root's .bashrc).

In any case, I'm hopeful you'll find SOMETHING useful in one of these links:

http://www.debian-administration.org...pletion_part_1

http://www.debian-administration.org...pletion_part_2

http://linuxhelp.blogspot.com/2005/0...asier-for.html

http://www.howtoforge.com/how-to-add...tion-in-debian

'Hope that helps .. PSM

PS:
Please post back what you find!

j1alu 06-26-2010 10:14 PM

Search for something looking similar like this:
Quote:

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
in the users /home/user/.bashrc and copy/paste it to roots /root/.bashrc.
Or just copy the whole /home/user/.bashrc to /root, run 'source /root/.bashrc' and it should work.

Mr. Alex 06-27-2010 12:36 AM

Quote:

Originally Posted by paulsm4 (Post 4015419)
Please post back what you find!

I got it, thanks!


All times are GMT -5. The time now is 01:07 PM.