Open Cygwin at a specific folder

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

    When a fresh install is needed, I create a Windows "user environment variable " named HOME and assigns it the path of wherever "My Documents" reside.

    The cygwin installer detects the HOME variable, automatically translates this into a cygpath and selects this it to be my ~ directory.

    This has worked fine for every workstation I have used professionally the last 5 years (about 3 or 4, Win7). I have always been the only user on these machines, cannot say what the effect is.

提交回复
热议问题