.zshrc and the configuration function

zsh

I called zsh from Bash for the first time in my machine after installing it. Then I followed the instructions in the menu from the configuration function and saved the changes.

So far so good, I can now use zsh. However I would like to start making manual changes to .zshrc, but I would like to know if adding manual entries to .zshrc will prevent me from running the configuration function again in the future.

Is there a syntax that I could try to stick to to make sure I can run this configuration function again? Is there any value in this?

Best Answer

The lines added by the automatic configuration function are marked in your ~/.zshrc:

# Lines configured by zsh-newuser-install
…
# End of lines configured by zsh-newuser-install

As long as you don't edit these lines or anything in between, you can keep using the configuration interface, and it'll edit the lines between these markers. Add whatever you want before or after the markers. Usually you'll want your stuff to go after the end marker, so that it isn't overridden by settings from the configuration interface.