Eliezer Kohen
Eliezer Kohen

Reputation: 469

.bashrc in Cygwin 1.7

I'm running Cygwin 1.7.17 on Windows Server 2012. My user account is "Administrator". Where should I put a .bashrc file for the Cygwin bash to pick it up?

I've tried the "c:\users\Administrator" folder, which seems to be the HOME in Cygwin 1.7. Tryed c:\cygwin\home\Administrator also.

Upvotes: 20

Views: 25786

Answers (1)

Costa
Costa

Reputation: 2043

Start a shell instance and run the command echo $HOME to see what your home path is set to. That's where all your user config files will be read from. It might not be one of the paths you tried.

Once you know where it is, just copy the template .bash_profile and .bashrc files from the /etc/skel folder to get you started.

If you don't like the path that's currently being used as your home, you can change it by editing /etc/passwd. Here's more info on that... Safely change home directory

Upvotes: 33

Related Questions