I have added some aliases and functions to the .bash_profile but they are not available when I start a new Command Line Prompt. Neither they are available after a reboot.
I need to execute a 'source ~/.bash_profile' each time.
So, I have added into the .bashrc file the following:
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#Added source
source ~/.bash_profile
However now when I try to open a new shell, the window just pops up for a second and then closes. Any idea how to apply changes in .bash_profile immediately? Thanks