-   Debian (
-   -   TAB button doesn't work always (

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:

'Hope that helps .. PSM

Please post back what you find!

j1alu 06-26-2010 10:14 PM

Search for something looking similar like this:

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
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


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 12:22 PM.