Installing flutter zsh: permission denied:

Im pretty new to flutter and decided to give it a try but cant seem to install. I am using macOS Catalina and following flutters docs I have to update my path by editing $HOME/.zshrc but this request is met with “zsh: permission denied:” how do I gain access to make the necessary edit

Have you tried using sudo ?