News for hackers. Stuff that matters.
Re:Environment Variables and Path in Windows 10 by riskable on Monday October 26, 2015 @08:38AM (#10450955)
If you made a change to your .profile why wouldn't you just apply it?

    . ~/.profile
Why logout and back in? You know which file was changed because you made the change.

As someone else mentioned down below, if you just need a new login shell with your variable changes just do this:

    exec /bin/bash -l
(the -l meaning, "act as if... invoked as a login shell")

Also a tip if you're using KDE: You don't need to logout and back in. Just do this:

    killall plasmashell
    kstart plasmashell
That should apply any changes you've made to environment variables to any applications that get launched (subsequently) via KDE's usual methods (e.g. K menu or krunnner aka Alt-F2). Your running applications will remain open!

There are no comments on this comment yet.