I've got a Cygwin installation, and I'd like it to start Bash in a certain directory whenever I start up. How can I achieve this?
In your ~/.bashrc
, You can either change your [tried and it didn't work] add a $HOME
to that directory, or you cancd
to that directory at the end of the file.
In your ~/.bash_profile
you may simply write cd /cygdrive/c/path/to/where/you/want/cygwin/to/start
. You will find this file in your cygwin installation folder, under <path_to_cygwin>\home\<user>\.bash_profile
. (In my case: C:\cygwin64\home\User\.bash_profile
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With