On 8/12/2013 4:59 PM, Nick Sabalausky wrote:
Perhaps surprisingly though, I don't actually use ls on windows - but that's only because the win version doesn't give much (any?) visual distinction of directories vs files. Instead, I stuck an "ls.bat" in my windows directory that invokes "dir /w %*". Probably my #1 most used command, aside from maybe cd.
You can set the default switches that DIR uses by setting the DIRCMD environment variable:
set DIRCMD=/w
I use:
set DIRCMD=/O:D/P
