Set Mac OS PATH the right way

Precheck:

08:35 azim ~/Documents/Kubernetes $   echo $PATH | tr ':' '\n'
/Users/azim/Downloads/google-cloud-sdk/bin
/Users/azim/anaconda3/bin
/Users/azim/.nvm/versions/node/v12.13.0/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/share/dotnet
~/.dotnet/tools
/Library/Frameworks/Mono.framework/Versions/Current/Commands
/Applications/Visual Studio Code.app/Contents/Resources/app/bin

Export Path:

08:48 azim ~/Documents/Kubernetes/crc-macos-1.9.0-amd64 $  export PATH="/Users/azim/Documents/Kubernetes/crc-macos-1.9.0-amd64:$PATH"

Post check:

 08:48 azim ~/Documents/Kubernetes/crc-macos-1.9.0-amd64 $   echo $PATH | tr ':' '\n'/Users/azim/Documents/Kubernetes/crc-macos-1.9.0-amd64
/Users/azim/Downloads/google-cloud-sdk/bin
/Users/azim/anaconda3/bin
/Users/azim/.nvm/versions/node/v12.13.0/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/share/dotnet
~/.dotnet/tools
/Library/Frameworks/Mono.framework/Versions/Current/Commands
/Applications/Visual Studio Code.app/Contents/Resources/app/bin

Verify:

08:48 azim ~/Documents/Kubernetes/ $  crc version
crc version: 1.9.0+a68b5e0
OpenShift version: 4.3.10 (embedded in binary)

Learner, thinker and Doer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store