This checks if the windows shell is cmd.exe similar to wsl bash check in pull request #10.
I modified the "isWslBash" function and made a "kindOfShell" that returns string "wslbash" or "cmd".
This was to avoid creating a new function isCmd and duplicating most of the code from isWslBash.
So now instead of an if condition we have a switch case.
In cmd.exe cd works only for paths within the current drive letter (which is C: usually when cmd is started).
To change the drive letter we need to send the drive letter and a colon to the terminal.
Fixes #4
This checks if the windows shell is cmd.exe similar to wsl bash check in pull request #10.
I modified the "isWslBash" function and made a "kindOfShell" that returns string "wslbash" or "cmd". This was to avoid creating a new function isCmd and duplicating most of the code from isWslBash. So now instead of an if condition we have a switch case.
In cmd.exe cd works only for paths within the current drive letter (which is C: usually when cmd is started). To change the drive letter we need to send the drive letter and a colon to the terminal.
Screen cap: