TAB action in ubuntu Konsole

Peter Garrett peter.garrett at optusnet.com.au
Wed Apr 26 05:35:02 UTC 2006


On Wed, 26 Apr 2006 07:59:46 +0300
"OOzy Pal" <oozypal at gmail.com> wrote:

> I am an x-mandriva user. In mandriva, when I write a letter or two in
> the konsole then click tab I get a list of all possible files in that
> directory; however, in ubuntu konsole if I click tab and if there is
> multiple possibilities I get nothing.
> 
> Am I making it clear??

Yes. But it works the same way in ubuntu (it's a shell thing, not a distro
thing):- hitting tab twice should indeed show multiple possibilities for
things in your $PATH.

For instance "kd <tab> <tab>"  or "gnome- <tab> <tab>"

For even more , edit ~/.bashrc and enable shell completion:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

It's already there in the file - you just remove the # marks to uncomment
it as above. This also gives you tab completion with "sudo", and things
like

sudo apt-g <tab> ins <tab> foopa <tab>   expand to

sudo apt-get install foopackage   (assuming foopackage exists, of course )

In a directory you will also see multiple possibilities in  a similar
fashion. For instance:

 $ ls -l scree <tab><tab><tab>
screenshot.jpg  screenshot.png  

Peter


-- 

Linux User #343161 




More information about the ubuntu-users mailing list