-
Notifications
You must be signed in to change notification settings - Fork 681
HOWTO: set environment variables
Ajeet D'Souza edited this page Oct 28, 2021
·
14 revisions
The examples below assume you want to set the ZO_ECHO
variable to 1. The full list of variables can be found here.
The way you set environment variables is dependent on your shell:
bash
Add this to your configuration (usually ~/.bashrc
):
export _ZO_ECHO='1'
elvish
Add this to your configuration (usually ~/.elvish/rc.elv
):
set E:_ZO_ECHO = '1'
fish
Add this to your configuration (usually ~/.config/fish/config.fish
):
set -x _ZO_ECHO '1'
nushell
Add this to your configuration (find it by running config path
in Nushell):
[env]
_ZO_ECHO = "1"
powershell
Add this to your configuration (find it by running echo $profile
in
PowerShell):
$env:_ZO_ECHO = '1'
xonsh
Add this to your configuration (usually ~/.xonshrc
):
$_ZO_ECHO = '1'
zsh
Add this to your configuration (usually ~/.zshrc
):
export _ZO_ECHO='1'
any POSIX shell
Add this to your configuration:
export _ZO_ECHO='1'