Open Cygwin at a specific folder

后端 未结 29 2590
悲哀的现实
悲哀的现实 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条回答
  •  萌比男神i
    2020-12-12 09:21

    If you want to have that directory as your default, simply add a cd statement to your ~/.profile file.

    What I tend to do is use that method to set my usual directory, plus define aliases for my common cases as well:

    alias tom="cd /users/tom"
    

    or your equivalent. This lets me change directories very fast.

提交回复
热议问题