@@ -47,11 +47,11 @@ To set environment variables, use one the following commands - where the `ENVIRO
47
47
48
48
# [ Command Line] ( #tab/command-line )
49
49
50
- Create and assign environment variable, given the value.
50
+ Create and assign persisted environment variable, given the value.
51
51
52
52
``` CMD
53
53
:: Assigns the env var to the value
54
- setx ENVIRONMENT_VARIABLE_KEY=value
54
+ setx ENVIRONMENT_VARIABLE_KEY=" value"
55
55
```
56
56
57
57
In a new instance of the ** Command Prompt** , read the environment variable.
@@ -63,7 +63,7 @@ echo %ENVIRONMENT_VARIABLE_KEY%
63
63
64
64
# [ PowerShell] ( #tab/powershell )
65
65
66
- Create and assign environment variable, given the value.
66
+ Create and assign persisted environment variable, given the value.
67
67
68
68
``` powershell
69
69
# Assigns the env var to the value
@@ -79,11 +79,12 @@ In a new instance of the **Windows PowerShell**, read the environment variable.
79
79
80
80
# [ Bash] ( #tab/bash )
81
81
82
- Create and assign environment variable, given the value.
82
+ Create and assign persisted environment variable, given the value.
83
83
84
84
``` Bash
85
85
# Assigns the env var to the value
86
- export ENVIRONMENT_VARIABLE_KEY=value
86
+ sudo -H gedit /etc/environment
87
+ ENVIRONMENT_VARIABLE_KEY=" value"
87
88
```
88
89
89
90
In a new instance of the ** Bash** , read the environment variable.
0 commit comments