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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap