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