Reloading zshrc

I use zsh instead of bash. If that doesn’t mean anything to you, then just skip the rest of this post. I’ve been restarting the terminal after every change to my zshrc file. I knew there had to be a way to quickly reload the file without restarting the terminal.

It turns out that typing “. ~/.zshrc” will do it. The problem is that I’m not likely to remember it. I found this nice tip at add the following to your zshconfig:

alias reload=“. ~/.zshrc && echo ‘ZSH config reloaded from ~/.zshrc’”

Now, just type “reload” and you’re all set.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s