Command Prompt

Set an environment variable

List all environment variables in Windows Command Prompt

set

Print a particular environment variable:

echo %VAR_NAME%

Set environment variables for user

setx EC2_CERT "%USERPROFILE%\aws\cert.pem"

Set system variables

setx EC2_HOME "%APPDATA%\aws\ec2-api-tools" /M

Source: http://www.dowdandassociates.com/blog/content/howto-set-an-environment-variable-in-windows-command-line-and-registry/

Chezmoi - manage your personal configuration files (dotfiles, like ~/.gitconfig) across multiple machines

  • https://www.chezmoi.io/