Skip to content

Instantly share code, notes, and snippets.

@aspnetde
Last active November 2, 2020 16:11
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 aspnetde/bafa657d3222c91dea7709b3bb2eb2fd to your computer and use it in GitHub Desktop.
Save aspnetde/bafa657d3222c91dea7709b3bb2eb2fd to your computer and use it in GitHub Desktop.
Setting a fucking environment variable on macOS

Setting a fucking environment variable on macOS

  1. Open Vim (vi ~/.zshrc)

  2. Add the entry (i)

  3. Exit (Esc + :wq)

  4. Refresh (source ~/.zshrc)

Adding dotnet/tools to PATH for ZSH

  1. Open ~/.zshrc:
vi ~/.zshrc
  1. Add dotnet/tools to PATH:
export PATH=$HOME/.dotnet/tools:$PATH

Reload ~/.zshrc

source ~/.zshrc
@aspnetde
Copy link
Author

aspnetde commented May 5, 2020

Example entry: export NVM_DIR="$HOME/.nvm"

@irgendwienet
Copy link

statt :wq reicht auch :x

@aspnetde
Copy link
Author

aspnetde commented May 5, 2020

Das ist im Muscle Memory und geht dort nie wieder raus.

@nosami
Copy link

nosami commented May 5, 2020

😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment