Discussion in 'Article Discussion' started by bit-tech, 3 Aug 2017.
I don't recall ever seeing the colour CMD prompt.
I assumed this was just for the new Linux subsystem.
The screenshot looks like WSL, yes.
I dunno, I always go for green text on black, and alias ls to ls -l, so I always get to see the 'd' flag telling me something is a directory.
Syntax highlighting in VIm, though. Urgh. The default colours in there are unreadable.
Pretty sure you've been able to edit colour/opacity since Win7, but definitely since the first version of 10 - Mine's been green text on black background at 70% opacity for as long as I can remember.
What I was expecting:
What I got:
You can edit the overall colour scheme, but what's shown here is more of a contextual colour coding (folders, files, etc) which I've never seen with the default cmd.exe
None of the built-in windows gubbinz does that kind of highlighting iirc, even in the latest builds [powershell does some but not much]. This is almost certainly to make WSL easier on the eye [that and even MS' own screenshots show the *nix 'ls' command].
Random thing I learned: without WSL... 'ls' works in powershell [it basically just runs 'dir'], but not cmd.
Ah. I've not really seen contextual colour stuff. I tend to prefer everything to be the same colour tbh.
Powershell is trying very hard to compete with BASH/CSH (as much as I dislike CSH...) almost every sysadmin I know has muscle memory for 'ls' and not for 'dir'...
You can create an alias for ls to dir in normal CMD... (make ls.bat that only contains the command 'dir') but while it's simple to implement, its execution is pretty inconsistent IIRC.
Separate names with a comma.