Skip to content

Commit

Permalink
add text to clarify setting env vars for linux shells
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Barrett committed Jan 21, 2025
1 parent f28a1e6 commit 6ed6f55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/user_guide/authenticate.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Alternatively, Earthdata Login credentials can be created as environment variabl
export EARTHDATA_USERNAME="username"
export EARTHDATA_PASSWORD="password"
```
If you want to set these environmental variables permanently, add these two lines to your `.profile` file.
If you want to set these environmental variables permanently, add these two lines to the appropriate configuration files for your operating system.


=== "Linux"
Expand All @@ -102,7 +102,12 @@ Alternatively, Earthdata Login credentials can be created as environment variabl
export EARTHDATA_USERNAME="username"
export EARTHDATA_PASSWORD="password"
```
If you want to set these environmental variables permanently, add these two lines to your `.bashrc` file.
If you use `bash` and would like to set these environmental variables permanently, add these two lines to your `~/.profile` file:
```
EARTHDATA_USERNAME="username"
EARTHDATA_PASSWORD="password"
```
For other shells, use the recommended method to persistently set these environment variables for whichever shell you use.

=== "Windows"
To set the environment variables for the current `CMD` session, type the following:
Expand Down

0 comments on commit 6ed6f55

Please sign in to comment.