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.

Advertisements

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: