~/.zshrc doesn’t exist by default in Mac OS X so you need to create it. The
~/ translates to your user’s home directory and the
.zshrc is the ZSH configuration file itself.
So just 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 just hit ctrl+X. When it prompts:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
Just type “Y” and then you will get a new prompt which looks something like this; just note the path
/Users/jake/ will match your local user’s path:
File Name to Write: /Users/jake/.zshrc
Now just hit return and the file will be saved and you will now be back to the command line prompt in the “Terminal” or “iTerm.” If you now exit from the “Terminal” or “iTerm” and then open a new window, the
~/.zshrc settings should now be loaded in.