How does one locate a .zshrc file?

27,282

Solution 1

Sure. If it's not there already, create it yourself.

$ touch ~/.zshrc

Solution 2

You can run the helper script zsh-newuser-install from the prompt, and it will walk you through the process to create an initial .zshrc in your home directory.

Share:
27,282
Admin
Author by

Admin

Updated on January 04, 2022

Comments

  • Admin
    Admin over 2 years

    I used Homebrew to install Z shell (zsh) 5.0.7 on my Mac.

    For the life of me, .zshrc is nowhere to be found. It is not in ~. Is is not in /etc or /etc/zshrc as they suggest here: http://zshwiki.org/home/config/files

    Am I supposed to create it myself?

  • Admin
    Admin over 9 years
    Thanks a lot. I lost way too much time on that !
  • Robin Hsu
    Robin Hsu over 9 years
    You can just search on the web for "sample .zshrc" instead of writing your own from the scratch.
  • sapanoia
    sapanoia over 2 years
    This comment does not add anything new on top of all the other touch FILE answers.