Open Cygwin at a specific folder

后端 未结 29 2602
悲哀的现实
悲哀的现实 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:32

    You can add the icon to the shell by adding an Icon field set to the path to your Cygwin.ico file.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash]
    @="Cygwin"
    "Icon"="\"C:\\cygwin64\\Cygwin.ico\""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash\command]
    @="C:\\cygwin64\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe"
    

提交回复
热议问题