I'd like to set a specified path to $PATH,
I write it to the top of .bashrc
$ cat ~/.bashrc
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH
and activate it
$ source ~/.bashrc
It works
/usr/local/opt/coreutils/libexec/gnubin:/Users/me/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/me/.rvm/bin:/usr/local/mysql/bin:/Users/me/.rvm/bin:/Users/me/.rvm/bin:/Users/me/.rvm/bin
Nonetheless, when I open a new terminal, it's gone.
$ echo $PATH
/Users/me/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/me/.rvm/bin:/usr/local/mysql/bin
As a test, I closed all the terminals and restart fresh
$ echo $PATH
/Users/me/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/me/.rvm/bin:/usr/local/mysql/bin
The path /usr/local/opt/coreutils/libexec/gnubin
is not there.
I checked my operations:
1. put desired path to the top
2. export it
3. source to activate it.
What's wrong with my operations?