Open Cygwin at a specific folder

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

    I have created the batch file and put it to the Cygwin's /bin directory. This script was developed so it allows to install/uninstall the registry entries for opening selected folders and drives in Cygwin. For details see the link http://with-love-from-siberia.blogspot.com/2013/12/cygwin-here.html.

    update: This solution does the same as early suggestions but all manipulations with Windows Registry are hidden within the script.

    Perform the command to install

    cyghere.bat /install
    

    Perform the command to uninstall

    cyghere.bat /uninstall
    

提交回复
热议问题