I have been looking for a way to run dos batch files from the cygwin command line without having the enter the extension.
Would that be possible?
Currently, I have to enter the extension otherwise cygwin does not find the batch file.
cygwin;
I have been looking for a way to run dos batch files from the cygwin command line without having the enter the extension.
Would that be possible?
Currently, I have to enter the extension otherwise cygwin does not find the batch file.
Best Answer
I found no other solution so I did what golimar said.
Here is a simple script that looks for
.bat
files in a specific directory and creates aliases.For example if there is a file
git.bat
in/some/path
there will be a aliasgit
that points to it.Add this to your
~/.bashrc
or~/.zshrc
or whatever you're using: