Skip to content

Commit 635a4b7

Browse files
author
syrettaman
committed
Add examples to setting environmental variable
1 parent 0c684ac commit 635a4b7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/getting_started/prepare_env.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags:
99
## Setting Environmental Variables
1010
---
1111

12-
Specify the location for storing your config and keypair by setting the environmental variable `PCHAIN_CLI_HOME`.
12+
Specify the location of the directory for storing your config and keypair by setting the environmental variable `PCHAIN_CLI_HOME`.
1313

1414
Always remember the location that you set, if you forget the location, it means you forget where your keypair is being placed.
1515

@@ -20,16 +20,19 @@ The following command will set the environmental variable **temporarily**:
2020

2121
=== "Linux / macOS"
2222
```bash
23-
export PCHAIN_CLI_HOME="<PATH_TO_CONFIG>"
23+
# For example, "/home/user/pchain_cli_home"
24+
export PCHAIN_CLI_HOME="<PATH_TO_DIRECTORY>"
2425
```
2526
=== "Windows PowerShell"
2627
```PowerShell
27-
$Env:PCHAIN_CLI_HOME="<PATH_TO_CONFIG>"
28+
# For example, "C:\Users\user\pchain_cli_home"
29+
$Env:PCHAIN_CLI_HOME="<PATH_TO_DIRECTORY>"
2830
```
2931
=== "Windows Command Prompt"
3032
```PowerShell
33+
# For example, C:\Users\user\pchain_cli_home
3134
# No parentheses required
32-
set PCHAIN_CLI_HOME=<PATH_TO_CONFIG>
35+
set PCHAIN_CLI_HOME=<PATH_TO_DIRECTORY>
3336
```
3437

3538
For convenience reasons, you may alternatively want to set environmental **permanently**. Even in that case, we still suggest you remember the storage location.
@@ -41,11 +44,11 @@ The following command will set the environmental variable **permanently**:
4144
##########################################################
4245
## Append this line to $Home/.bashrc and $Home/.profile ##
4346
##########################################################
44-
export PCHAIN_CLI_HOME="<PATH_TO_CONFIG>"
47+
export PCHAIN_CLI_HOME="<PATH_TO_DIRECTORY>"
4548
```
4649
=== "Windows (restart shell to pick up change)"
4750
```PowerShell
48-
setx PCHAIN_CLI_HOME "<PATH_TO_CONFIG>"
51+
setx PCHAIN_CLI_HOME "<PATH_TO_DIRECTORY>"
4952
```
5053

5154
## Creating Password

0 commit comments

Comments
 (0)