Skip to content

Instantly share code, notes, and snippets.

@RockinPaul
Created November 20, 2019 16:51
Show Gist options
  • Save RockinPaul/10df8ad7c5b40309ccbefc113e8f7cae to your computer and use it in GitHub Desktop.
Save RockinPaul/10df8ad7c5b40309ccbefc113e8f7cae to your computer and use it in GitHub Desktop.
How to set environment variables permanently in zsh.
echo 'export ENV_VAR=12345' >> ~/.zshenv
echo $ENV_VAR // perform on relaunch of zsh to check if everything is set properly.
12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment