How do i start Mintty and run a script file?

前端 未结 4 925
闹比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:19

    Best solution in my opinion:

    Invokes the right shell, no unnecessary windows and invokes a bash script afterwards which will be hold.

    • Create a Shortcut to mintty.exe on your desktop, for example

    • Edit properties of the shortcut and change the target (keep the path):

    • C:\Program Files\Git\usr\bin\mintty.exe" -h always /bin/bash -l -e 'D:\folder\script.sh'

提交回复
热议问题