Now open your .zshrc file: open ~/.zshrc paste the copied code at the end and save it. Then RUN the below command, source ~/.zshrc When on iterm2 or the terminal, you should see a (base) pop up in there1. That's usually a permissions problem. You are attempting to save a file which may be. read-only. owned by some other user. stored in a directory to which you have no write-permission. There's not enough information in the question to be more specific. But a usual pitfall lies in copying files (or directories) as root (which makes them owned
For the newly initiated, hereâs how you can edit the .zshrc file on your Mac. Step 1: Fire up Terminal.app. Step 2: Type nano .zshrc â This command will open the .zshrc document (or create it if it doesnât already exist) in the easiest to use text editor in Terminal â Nano. Step 3: Now you can make a simple change to the file.
Open Terminal and enter this command in the shell âopen ~/.zshrcâ. The .zshrc file will open in the root directory of your system. However, this command doesnât work for macOS Catalina and subsequent operating systems. So, if your Mac is running on any latest operating systems, youâll have to configure permissions using the command