~/.zshrc doesn’t exist by default in macOS so you need to create it. The
~/ translates to your user’s home directory and the
.zshrc is the ZSH configuration file itself.
So open up a Terminal — or iTerm — window and create that file like this; I am using
nano as a text editor but feel free to use whatever text editor you feel comfortable with:
And then set the
ZSH_THEME value to whatever value you want to use like this:
Now to save the file in
nano, hit ctrl+X. When it prompts:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
Type “Y” and then you will get a new prompt which looks something like this; note the path
/Users/giacomo/ will match your local user’s path:
File Name to Write: /Users/giacomo/.zshrc
Now hit return and the file will be saved and you will now be back to the command line prompt in the Terminal. If you now exit from the Terminal and then open a new window, the
~/.zshrc settings should now be loaded in.