Guest User

Untitled

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # Bash
  2. 1. Edit the `~/.bashrc` file.
  3. 2. Append:
  4. ```
  5. VARIABLE="value"
  6. ```
  7.  
  8. # Z shell (zsh)
  9. 1. Edit the `~/.zshrc` file.
  10. 2. Append:
  11. ```
  12. export VARIABLE="value"
  13. ```
  14.  
  15. # C shell (csh) and TENEX C shell (tcsh)
  16. 1. Edit the `~/.cshrc` file.
  17. 2. Append:
  18. ```
  19. setenv VARIABLE value
  20. ```
  21.  
  22. # friendly interactive shell (fish)
  23. 1. Edit the `~/.config/fish/fish.config` file.
  24. 2. Append:
  25. ```
  26. set -gx VARIABLE value
  27. ```
  28.  
  29. # KornShell (ksh)
  30. 1. Edit the `~/.kshrc` file.
  31. 2. Append:
  32. ```
  33. export VARIABLE value
  34. ```
  35.  
  36. # Glossary
  37. | Term | Definition |
  38. |------- |----------------------------------------------- |
  39. | ~ | Your home directory |
  40. | VARIABLE | The name of the environment variable |
  41. | value | The value held by the environment variable |
Add Comment
Please, Sign In to add comment