Maythux is correct, the variable was declared local, but for it to be seen as a global variable by the system it would have to be exported.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Also works in .bash_profile to source $HOME/.bashrc
Maythux is correct, the variable was declared local, but for it to be seen as a global variable by the system it would have to be exported.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Also works in .bash_profile to source $HOME/.bashrc