'Set multiple PATH Variables in MacOS Big Sur (zsh)
I want to add multiple Path Variables:
- Dart & Pub (Doesn't work)
- sdkman (works)
- homebrew and its installations (Doesn't work)
- Deno (Doesn't work)
- Cargo & Rust (works)
- Npm & NodeJS (Doesn't work, but worked without setting a path until i added cargo)
And that's my current .zshrc file:
export PATH="$PATH":"$HOME/.pub-cache/bin"
source "$HOME/.sdkman/bin/sdkman-init.sh"
export PATH="/opt/homebrew/bin"
export PATH="/Users/kloetzchengrafik/.deno/bin:$PATH"
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
# Setting PATH for Cargo
PATH="/Users/kloetzchengrafik/.cargo/bin"
export PATH
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|