zshrc: read only file system: /.zshrc - while adding environment variable

I am trying to add a global environment variable using

echo "export VARIABLE_NAME=VALUE">>~/.zshrc

But I am getting the error

zshrc: read only file system: /.zshrc

Is there any other way to do it? I can't seem to find a solution to this anywhere.

Please help.

using ventura 13.2.1

Posted on Feb 26, 2023 8:05 PM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

zshrc: read only file system: /.zshrc - while adding environment variable

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.