12

I wondered if theres a way to do rotational style completion in bash similar to the behavoir on cmd.exe, I've found it speeds me up in regard to entering commands

  • 2
    is there any way of making cmd.exe's behaviour more similar to bash. I make less mistakes in bash because it doesnt pick the wrong file. – justintime Dec 16 '10 at 22:32
12

In your ~/.inputrc file, add:

"\C-i": menu-complete

to re-read that file so it takes effect in the current shell, press Ctrl-x Ctrl-r.

| improve this answer | |
  • This was really useful for my blind friend. Normal bash tab completion is useless with a screen reader; this makes it useable. – Cajunluke Feb 16 '11 at 5:05
  • reset would probably work too... – Hello71 Apr 19 '11 at 2:28
  • 1
    @Hello71: reset affects the terminal, not bash. – Paused until further notice. Apr 19 '11 at 13:11
  • 3
    @KoMet: bind 'set completion-ignore-case on' at a prompt or in ~/.bashrc or set completion-ignore-case on in ~/.inputrc. – Paused until further notice. Jul 11 '12 at 14:11
  • 1
    @KoMet: You're welcome. Upvotes are always appreciated. – Paused until further notice. Jul 11 '12 at 14:35
2

That won't be a very meaningful answer, but you have answer here:

http://spoonmanwos.blogspot.com/2006/02/bash-completion.html

http://www.jpsdomain.org/linux/linux.html

| improve this answer | |