I want to add texlive's directory to my PATH, so i type export PATH=$PATH:/usr/local/texlive/2018/bin/x86_64-linux
and it update the PATH variable correctly. I can use commands listed in texlive path, and echo $PATH
return the usual usr/bin AND texlive's path.
But when I close my terminal and open it again, it doesn't work anymore, and echo $PATH
return /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
(Which is also kinda weird...).
Tried to edit .profile
or .bashrc
(I put export PATH=$PATH:/usr/local/texlive/2018/bin/x86_64-linux
at the end), but bash doesn't seems to read it on new terminals.
PATH
by editing~/.profile
, you need to relogin before it takes effect. – Gunnar Hjalmarsson Feb 10 '19 at 20:10export PATH=$PATH:/usr/local/texlive/2018/bin/x86_64-linux
at the end of it. The command works afterwards if I save and source it, but PATH still resets itself when I close the terminal.@GunnarHjalmarsson if I understood well, don't have to relogin if I do
– TBrsx Feb 10 '19 at 20:11source ~/.profile
. Just to be sure, I tried to reboot : still the same problem.PATH
. (Can't tell why a reboot wasn't sufficient for you.) – Gunnar Hjalmarsson Feb 10 '19 at 20:47