Stupid TAB-Complete

As a long time PC user, the “prompt” or “Terminal” in OS X is the place to be if you wanna get thing done, the easy way. However I soon discovered that the TAB-Complete, which I used a lot in the Windows environment, didn’t work… well… not as I expected anyways, so when  I wanted to type “cd somefolder” and typed “cd some[TAB]”, nothing happened.

Now to fix this, I found this little neat trick, (in the Terminal offcause) type:

nano .inputrc

paste the following:
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete

Save the file by pressing Control-O (then press Enter)
Quit the nano editor, by pressing Control-X

Now it works just like in Windows…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s