[Herts] Bash auto-completion enhanced
David Precious
davidp at preshweb.co.uk
Fri Mar 23 11:09:31 GMT 2007
Hi all,
Recently found bash-completion, an add-on to improve the auto-completion
in Bash (you know, the lazy "type a few letters and hit tab" job :)).
It auto-completes parameter names for common commands (e.g. typing grep --
and hitting tab twice will show you a list of all the named options
available).
Even nicer (I think), is ssh autocompletion - it reads your known_hosts
files to autocomplete hostnames. So, if you've ssh'd to
reallylongannoyinghostname.somewhere.com before, you can just type ssh
rea<tab>.... how slick is that :)
<promotion of="own-blog" type="shameless">
Have a look at:
http://blog.preshweb.co.uk/index.php/2007/03/22/bash-auto-completion/
(if you like it, leave a comment ;) )
</promotion>
Cheers
Dave P
More information about the Herts
mailing list