How do i start Mintty and run a script file?

前端 未结 4 924
闹比i
闹比i 2020-12-31 09:39

I wrote a simple CURL and put it in a script file.

if i run mintty first and then \"test.sh\" it runs the script in the file just fine. Works perfectly.

how

4条回答
  •  抹茶落季
    2020-12-31 10:17

    For whoever is interested in this... here is the solution

    Create a shortcut in windows for mintty with the following target

    Assuming your shell file is located in c:\cygwin\bin

    C:\cygwin\bin\mintty.exe /bin/bash -l -e '/cygdrive/c/cygwin/bin/test.sh'
    

提交回复
热议问题