I see many people do the opposite. Are there any reasons why it is a bad idea to source ~/.profile from ~/.bashrc?
# .bashrc
if [ -f ~/.profile ]; then
source ~/.profile
fi
I've done a lot of searching and usually people do the following:
# .bash_profile
if [ -f ~/.profile ]; then
source ~/.profile
fi
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
I need some env variables in ~/.profile to be defined for an interactive shell that is not a login shell (thus I'm using ~/.bashrc). Is this opening me to any dangers?