Open Cygwin at a specific folder

后端 未结 29 2673
悲哀的现实
悲哀的现实 2020-12-12 08:49

How can I create a Cygwin shortcut that will open Cygwin at a specific folder? This would obviate having to type

cd /cygdrive/c/Users/Tom/Desktop/

29条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 09:25

    I had also problem with git, that used to "steal" my cygwin commands - so i needed to run
    C:\cygwin\bin\mintty.exe -
    but after installing chere and executing chere -i -t mintty -f as admin (see above), you can simply use :
    C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "."
    I added this in Total Commander as custom button (right click on panel > add ...) and it works very well.

提交回复
热议问题