Skip to content

Commit

Permalink
bash: Add reverse cycle TAB completion
Browse files Browse the repository at this point in the history
Make it possible to use SHIFT-TAB to reverse-cycle through possible
completions.

Include a commented out line to automatically display the possible
completions (to be used instead of TAB cycle).
  • Loading branch information
necolas committed Feb 6, 2013
1 parent 3a467e7 commit 7792983
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bash/inputrc
Expand Up @@ -5,10 +5,15 @@
# Use case-insensitive TAB autocompletion
set completion-ignore-case on

# Auto list tab completions (use instead of TAB-cycling)
# set show-all-if-ambiguous on

# Make TAB cycle through possible completions
"\t": menu-complete
# Make SHIFT-TAB reverse cycle through possible completions
"\e[Z": "\e-1\C-i"

# Use the string that has already been typed as the prefix for searching
# through commands (i.e. more intelligent Up/Down behavior)
# through commands (i.e. more intelligent Up/Down-arrow behavior)
"\e[B": history-search-forward
"\e[A": history-search-backward

0 comments on commit 7792983

Please sign in to comment.