user1443362
user1443362

Reputation: 645

How do I make Bash' tab complete automatically cycle through options OSX

Currently when I'm in my home folder and I want to cd into Documents I type cd D and hit Tab, Bash shows me the list of folders that match D.

What I want to occur is when I press Tab, bash autocompletes with the first option that matches what I've put in and each time I press Tab it cycles through to the next option.

Is there any way to do this? I thought for sure my copy of Bash on my old Ubuntu box had this feature.

Upvotes: 32

Views: 13040

Answers (1)

xizdaqrian
xizdaqrian

Reputation: 726

Yes! I found the answer to the question at the following link at MacWorld

put the following in .bashrc or .bash_login

bind '"\t":menu-complete'

Upvotes: 39

Related Questions