In Ubuntu, edit /etc/environment
. Its sole purpose is to store Environment Variables. Originally the $PATH variable is defined here.
This is a paste from my /etc/environment
file:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
So you can just open up this file as root and add whatever you want.
For Immediate results,
Run (try as normal user and root):
source /etc/environment && export PATH
UPDATE:
If you use zsh
(a.k.a Z Shell), add this line right after the comments in /etc/zsh/zshenv
:
source /etc/environment
I encountered this little quirk on Ubuntu 15.10, but if your zsh is not getting the correct PATH, this could be why