I tried to customize the ZSH terminal shell (e.g. prompt, auto-completion behavior) by editing the ZSH files, but failed. I have tried both the following, and none worked: Edit ~/.zshrc: When I trHow to create a zshrc file on Mac. Go to Applications > Utilities and open Terminal. Type the following command: touch ~/.zshrc. Press Return. The file has now been created. To see it, open a Finder window, navigate to your home directory, and press Command+Shift+period. You will see the
If everything works, you can edit your .zshrc accordingly. Adding prompt themes without a separate file for each one. In addition to adding a prompt theme through its own file, it is possible to add themes from within another file (like your .zshrc), eg: ~/.zshrc
1st question: you have to put in .zprofile everything to be done just once per session, you have to put in .zshrc everything depending of the shell level. For my use of shell I don't use .zshrc but this is my case of use. 2nd question: then it could be another component used indirectly by anaconda.
Generally speaking you can put any settings in ~/.zshrc. It is loaded regardless if the shell is interactive, login, or not. ~/.zprofile does not load for non-login shells, but in macOS the default behavior in the terminal is to launch new shells as a login shell. The files in /etc are for every user and it is not recommended to add to them for
Q3Gy.