Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force windows cmd tab complete to add a trailing slash to directory names

On the rare occasion that I have to use a windows command prompt rather than bash, it drives me nuts that tab completion doesn't add a slash to the end of directory names. Is there a setting or script that I can run to force the full completion?

like image 739
Jonathan Day Avatar asked Apr 21 '11 07:04

Jonathan Day


2 Answers

The answer these days is PowerShell. It is superset of the windows command line. It has many of the Linux commands. It has an object-based pipeline and has full access to the .NET framework from the command line.

And it adds a trailing slash when using tab to expand a directory name.

POwerShell

like image 187
Enigmativity Avatar answered Oct 11 '22 10:10

Enigmativity


No there is no such setting. Your best bet is to use bash through cygwin but I expect you already knew that bit.

like image 20
David Heffernan Avatar answered Oct 11 '22 11:10

David Heffernan