Created
January 8, 2023 07:46
-
-
Save SurajBahadur/85448fafbdf5d098218aa10d8dbbdca5 to your computer and use it in GitHub Desktop.
in mac always getting zsh: command not found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Works on macOS : | |
You can manually edit .zshrc file and revert the changes you made to PATH. | |
Open TextEdit app. | |
Go to folder: cmd + shift + g | |
type: ~/ | |
See hidden files: cmd + shift + . | |
select: .zshrc | |
Revert changes, save file, and reopen terminal. |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PATH=$PATH:/opt/homebrew/bin
//flutter path
export PATH=$PATH:/Users/prepladderpvtltd/Documents/FlutterDev/sdk/flutter/bin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inside the file add this line
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
or
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PATH=$PATH:/opt/homebrew/bin