Skip to content

Instantly share code, notes, and snippets.

@seppestas
Created January 28, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seppestas/bd775c9444cb7ed01fcf10554d9fb168 to your computer and use it in GitHub Desktop.
Save seppestas/bd775c9444cb7ed01fcf10554d9fb168 to your computer and use it in GitHub Desktop.
Set variables
=============
Set a variable in different environments. Example sets `$VAR` to "fubar".
## Linux, MacOS, ...
```
VAR=fubar
```
## Windows PowerShell
```
$env:VAR="fubar"
```
## Windows CMD
```
set "VAR=fubar"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment