Load .bashrc in Cygwin at startup

It can get a bit annoying when using Cygwin under Windows and you are more familiar with the comfort of linux. One point is the bash configuration file "~/.bashrc" which is not loaded automatically when starting a new shell.

For instance, consider the following set of abbreviations in my ~/.bashrc (may initially not exist, so create it) file under cygwin:

alias ll='ls -lh'
alias la='ls -lah'
alias ..='cd ..'
alias ...='cd ../..'
alias e='exit'

Useful but normally you always have to type "bash" at the beginning of a new bash shell session.

One simple line solves the problem: Add the following line to your /etc/profile

source $HOME/.bashrc
Author: Christoph Hermes, published: 2008-06-12 09:55:31