Actions
System\Environment Variables¶
To set system\environment variable in your OS, do the following (substitute NAME and VALUE by the name and value of your environment variable respectively):
Windows¶
- Open the
System Properties
window. - Switch to the
Advanced
tab. - Click on Environment Variables.
- Click
New...
underSystem Variables
. - In the
New System Variable
dialog specify variable name asNAME
and variable value asVALUE
. - Click
OK
on all open windows. - Reopen the command prompt window.
Linux¶
Add the command below to the ~/.bash_profile
or ~/.bashrc
file (Linux):
export NAME=VALUE
Changes will be applied after restarting the command-line terminal or reboot. You can also execute the command in your command-line terminal to make temporary changes.
Updated by Sergey Smolov about 5 years ago · 1 revisions