Iam newbee in bash scripts . I am trying to add a line on .bashrc file :
## make python 2.7 default in ~/.bashrc
echo 'export PATH=/usr/local/lib/python/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
The source command is not reloading the ~/.bashrc file . (but works if i do it on the prompt )
How I can reload the .bashrc from the script ? any help will be more then appreciated .
Cheers