microsoft / java-wdb

Windows Developer Box for Java Developers
MIT License
75 stars 1 forks source link

Enhanced CMD.exe prompt #29

Open jtnord opened 3 years ago

jtnord commented 3 years ago

Summary

Enhance CMD.exe with features found in modern shells.

Powershell is ok for scripting, but is a step too far for an everyday working shell. Using bash (either in wsl or via cygwin) causes issues as paths are not as expected when you invoke tools.

For example things missing are

This is possible by third party extensions like https://github.com/mridgers/clink but it is not a supported solution.

Basic example

In the PROMPT I can see at a glance things like git branch/ kubernetes cluster / directory when you have multiple consoles open

Motivation

As a developer I often drop to the CMD.exe console to perform many tasks and have many consoles open at once when debugging / tracing applications.

Being able to efficiently use the CMD.exe benefits me by providing me with more contextual information so I am more efficient, and means I am less likely to delete the wrong kubernetes cluster.

LuanVSO commented 3 years ago

why PowerShell is not suitable for you?

jtnord commented 2 years ago

why PowerShell is not suitable for you?

It does bad things like curl is not curl, dir /s/b gives an error and basically everything is different.

as I said:

Powershell is ok for scripting, but is a step too far for an everyday working shell

LuanVSO commented 2 years ago

It does bad things like curl is not curl

image

unfortunately changing cmd in any way is a breaking change for someone and so the team responsible for it cannot/ are not interested in adding features to it. (see https://github.com/microsoft/terminal/blob/main/doc/Niksa.md#cmd and https://github.com/microsoft/terminal/issues/217)