Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bash
- 1. Edit the `~/.bashrc` file.
- 2. Append:
- ```
- VARIABLE="value"
- ```
- # Z shell (zsh)
- 1. Edit the `~/.zshrc` file.
- 2. Append:
- ```
- export VARIABLE="value"
- ```
- # C shell (csh) and TENEX C shell (tcsh)
- 1. Edit the `~/.cshrc` file.
- 2. Append:
- ```
- setenv VARIABLE value
- ```
- # friendly interactive shell (fish)
- 1. Edit the `~/.config/fish/fish.config` file.
- 2. Append:
- ```
- set -gx VARIABLE value
- ```
- # KornShell (ksh)
- 1. Edit the `~/.kshrc` file.
- 2. Append:
- ```
- export VARIABLE value
- ```
- # Glossary
- | Term | Definition |
- |------- |----------------------------------------------- |
- | ~ | Your home directory |
- | VARIABLE | The name of the environment variable |
- | value | The value held by the environment variable |
Add Comment
Please, Sign In to add comment