How to reload Zsh .zshrc Profile


If you have made a recent change to the Zsh shell profile file i.e. .zshrc file (located under ~ on macOS/Linux) and you want to reload Zsh to apply the changes, there are few ways you can try.


Option 1: Zsh Command

Simply run the zsh command again on the terminal. This will refresh and reload the Zsh Shell.

I have added an echo "ZSH File Reloaded!" just to test this out.

Reload Zsh Shell Zshrc Profile Example 1

Option 2: Source Command

Make use of the source command followed path to the .zshrc path.

% source ~/.zshrc
Reload zshrc file example 2
-




Have Questions? Post them here!