Do
echo $PATH
Then take the mouse the part that looks useful and add it to:
PATH=
So, for example, not in the OSX system:
PATH=/home/ramy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
If you only got the path in one terminal, you can, alternatively, open a new terminal.
If you added the original command to the same script configuration, you must delete it there to get rid of it permanently.
source share