I want to make my windows command prompt cmd+cygwin.
I should be able to run both windows cmd commands and cygwin commands from my windows cmd prompt.
If I add C:\cygwin64\bin
to my PATH variable i can run some cygwin commands like ls
and clear
and some more through cmd prompt, but cygwin style paths don't work in this case.
D:\>cd /cygdrive/d
The system cannot find the path specified.
Is there a clean way to do this?
UPDATE: Based on suggestions I tried it in Powershell.
PS C:\GIT_Repo> ls -lrt
Get-ChildItem : A parameter cannot be found that matches parameter name 'lrt'.
At line:1 char:4
+ ls -lrt
+ ~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
This command works in CMD prompt:
C:\GIT_Repo>ls -lrt
total 752
-rw-rw-r--+ 1 Ashish None 931 Jun 26 23:39 Mp3_Properties.py
-rwxrwxr-x+ 1 Ashish None 763247 Jun 26 23:44 'My_mp3_File.mp3'
Path don't work in Powershell too:
PS C:\GIT_Repo> cd /cygdrive/c
cd : Cannot find path 'C:\cygdrive\c' because it does not exist.
At line:1 char:1
+ cd /cygdrive/c
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\cygdrive\c:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
Still no success.