Skip to content

Instantly share code, notes, and snippets.

@rmangino
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmangino/2d2280f6bb139a61ab5e to your computer and use it in GitHub Desktop.
Save rmangino/2d2280f6bb139a61ab5e to your computer and use it in GitHub Desktop.
Bash: Completion - Single [tab]

The Bash shell (as of version 2.04) supports tab completion. By default if tab completion is activated (you hit the tab key once) no results are shown if more than one match exists. To view all matching completions you must hit the tab key a second time.

If you would like the completion feature to always return all results when pressing the tab key once add the following to ~/.inputrc (you may either source .inputrc or restart bash.

set show-all-if-ambiguous on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment