Cygwin won’t read .bashrc?

28 September 2007

ConsoleAdd the following line of code to the very bottom of /etc/profile

. "$HOME/.bashrc"

This will execute the .bashrc file from your home directory.

If you are not sure where your home directory is type the following into a cygwin console:

echo $HOME

If your user folder contains a space; you may have to place the .bashrc file into the root directory and you may still have the calling line into /etc/profile.

3 Responses to “Cygwin won’t read .bashrc?”


  1. [...] by BKB on April 3rd, 2008 Today I had a problem with Cygwin failing to read .bashrc. I found a blog post about it by Pura Coding. It says Add the following line of code to the very bottom of [...]

  2. BKB Says:

    Even if the user folder contains a space, the following in /etc/profile works:

    . “${HOME}/.bashrc”


Leave a Reply