Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the Windows 7 command line, pressing TAB completes to the first matching item (ie, folder or file). In most Linux shells I am aware of, like bash, TAB completion completes only up to the characters that are unambiguous and then you can either type the remaining character(s) yourself or get a list of completion options.

How can I make the Windows command prompt behave like this as well?

(While searching for this question, I've just discovered in another superuser question that pressing multiple times the TAB key will cycle through the options. This is very neat, and perhaps one day I'll actually favor it over the bash-type completion. But for now, my original questions still remains.)

share|improve this question
1  
You can't, but you could download a third-party shell instead of using cmd.exe. –  Harry Johnston Jul 7 '12 at 5:46
    
... in particular, see superuser.com/questions/446271/… –  Harry Johnston Jul 9 '12 at 3:53
    
mingw includes a bash shell for windows. However, I have trouble with any auto copletion in it. –  Vorac Jul 12 '12 at 15:15
    
I have used cygwin terminal for many years, well, I'm very familiar with bat scripts. I even discovered the goto bug in .bat file. I just don't see any advantage of cmd.exe over bash. Umm.. I'm not bashing cmd.. –  Xiè Jìléi Jul 21 '12 at 14:26
1  
For the opposite, making Bash tab completion work like Windows, see: superuser.com/questions/59175/… –  Nathan Jan 16 at 20:29
add comment

1 Answer

clink brings some Bash-like features to Windows command interpreter. It's portable and can be injected into cmd.exe automatically:

clink autorun --install
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.