.bashrc
, .bash_profile
, .zshrc
).
For Zsh:
Microsoft.PowerShell_profile.ps1
).
setx
command:
setx
, you need to restart the Command Prompt or any applications that need to read the new environment variable.
To display the environment variable in a new Command Prompt session: