The .bashrc has a few lines of code that prevent sourcing it from a script. These lines are located at the top of the file and need to be commented out as follows:
# If not running interactively, don't do anything
#case $- in
# *i*) ;;
# *) return;;
#esac
The .bashrc has a few lines of code that prevent sourcing it from a script. These lines are located at the top of the file and need to be commented out as follows: