PDA

View Full Version : Tab completion?



majure
09-11-2004, 04:35 PM
Hi!

I've been using knoppix in some computers for a time now.
I installed Debian sarge in my laptop and got everything working ok.
Just got one question about knoppix.
In Debian the tab completion only works on the first word.
For example,
if i write apt-g end press tab i get apt-get, and if i continue after that to write upgr i won't get anymore completion. In Knoppix this however works, so I just wondered if there are any setting or maybe some progs that do this in Knoppix?

Thank for the help

baldyeti
09-12-2004, 12:34 AM
Knoopix enables the debian auto-completion goodies through the following in /etc/profile:

# enable bash completion in interactive shells
[ "$PS1" -a -f /etc/bash_completion ] && . /etc/bash_completion
You can do the same, or add this to your ~/.bashrc Very handy indeed!

majure
09-12-2004, 02:25 AM
Thank you very much.
Really usefull stuff