You can use source .zshrc to update the changes of your zshrc file in the same terminal session.
Yes, you can. It doesn't work everywhere for everyone. So, I prefer:
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
Going to be my next tip.
It works but it creates a new instance of the shell process.
Yes, that's the point. source method doesn't always work for every OS. Not everyone has Zsh, Bash, — folks have many different and custom setups. 🙌
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.