Open Cygwin at a specific folder

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

    From the cygwin terminal, run this command:

    echo "cd your_path" >> ~/.bashrc

    The .bashrc script is run when you open a new bash session. The code above with change to the your_path directory when you open a new cygwin session.

提交回复
热议问题