Saturday, January 26, 2013

Single TAB bash completion

Bash completion (when enabled) allows you to complete paths, commands, and filenames by hitting the TAB key. On the first press of the TAB key it completes the command as long as there is no ambiguity about the completion. If there are several possible completions a second key press reveals all the options.

It is possible to setup bash/readline to reveal the options after the first key press. Just add the following line to your ~/.inputrc :
 set show-all-if-ambiguous on


No comments:

Post a Comment