Lots of modern Linux distributives prefer this variant of autocompletion. You type a letter, push 'Tab' and receive the list of options. But I don't like this. I like when options appear after the second push of 'Tab'.
It is controlled by show-all-if-ambiguous parameter of inputrc. For double-Tab style (which I prefer) the command will look like:set show-all-if-ambiguous off
This should be placed into /etc/inputrc (if you have privileges and want system wide setting) or in your local ~/.inputrc. But in the second case you should also addunset INPUTRC;
to you ~/.bashrc
A bit about
Hello, everyone! All you can see below is just my bank of information. Some material I've found in the fathomless net, some I've learned myself. Don't think all of the information here is right or actual, but may be it could be of use for you :) All feedback is welcome, especially constructive ones :)
Wednesday, August 26, 2009
BASH: autocompletion after the first <TAB>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment