In a ubuntu terminal my .bashrc isn't available until I run: source ~/.bashrc
I have a ~/.bash_profile with contents:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
I have a ~/.profile with:
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
What should I do for my .bashrc to be loaded automatically? Should I merge .bash_profile and .profile and delete one of them? Thanks