Making bash TAB completion more like cmd.exe

12

2

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

Alistair

Posted 2010-12-15T10:50:15.367

Reputation:

Question was closed 2014-01-21T03:39:59.043

2is 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 – 2010-12-16T22:32:12.850

Answers

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.

Paused until further notice.

Posted 2010-12-15T10:50:15.367

Reputation: 86 075

This was really useful for my blind friend. Normal bash tab completion is useless with a screen reader; this makes it useable. – Cajunluke – 2011-02-16T05:05:02.103

reset would probably work too... – Hello71 – 2011-04-19T02:28:50.383

1@Hello71: reset affects the terminal, not bash. – Paused until further notice. – 2011-04-19T13:11:50.460

can we make this not case-sensitive as well? – koenmetsu – 2012-07-11T11:56:38.710

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. – 2012-07-11T14:11:56.687

1@KoMet: You're welcome. Upvotes are always appreciated. – Paused until further notice. – 2012-07-11T14:35:30.887

works in Terminal on Mac OS Lion too. I've been looking for this for ages. I remember following some really convoluted recipe in Leopard a couple of years go but it never really worked. Glad I checked again - thanks – Rhubarb – 2012-10-20T18:57:24.163

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

Tomasz Kowalczyk

Posted 2010-12-15T10:50:15.367

Reputation: 177