re: #OneDevMinute: Go back to the Previous Directory VIEW POST


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. 🙌

code of conduct - report abuse