I have recently upgraded my OS to Max OS Sierra and I am trying to save one specific path in the environment variable(PATH variable). I opened Terminal and executed below steps:
echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export PATH=~/Desktop/:$PATH
echo $PATH
/Users/pratik/Desktop/:/usr/bin:/bin:/usr/sbin:/sbin:/usr /local/bin
I have closed the Terminal and opened new Terminal and executed below command:
- echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
So the path which I have added previously is not getting saved. What am I missing here?