Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: permission denied: /Users/macbookpro/.zshrc

I'm new in flutter I want to set flutter sdk path in Mac OS (VS code) for this I'm fallow the https://flutter.dev/docs/get-started/install/macos#update-your-path but when I run $HOME/.zshrc in Terminal It show error message zsh: permission denied: /Users/macbookpro/.zshrc I also apply this Terminal error: zsh: permission denied: ./startup.sh but this is not work for me.. can some one help me

like image 363
Faiz E Qamar Avatar asked Jan 21 '26 16:01

Faiz E Qamar


2 Answers

step.1

Open your terminal.

step.2

cd ~
vim .zshrc

step.3

Pass i to insert,and insert your flutter path(/bin:/Library/flutter/bin) behind .bin:$PATH/.

If you are done, press esc and enter :wq.

example

export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH/bin:/Library/flutter/bin"
like image 54
Daviswww Avatar answered Jan 23 '26 09:01

Daviswww


If you want to evaluate its content inside your current zsh process, you can do a

source ~/.zshrc

You need to set the execute permission on the file, as you do for any other command which you want to execute, i.e.

chmod +x ~/.zshrc
like image 40
Ravindra Nakrani Avatar answered Jan 23 '26 08:01

Ravindra Nakrani