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.
Option 2: Source Command
Make use of the source command followed path to the .zshrc path.
% source ~/.zshrc
Have Questions? Post them here!
- How to make zsh as the default shell on Ubuntu
- Resolve - zsh: command not found: code
- Fix - zsh: command not found: conda [macOS]
- zsh: command not found [fix] macOS
- Setting up Zsh Syntax Highlighting
- Fix for zsh: command not found: brew
- Fix zsh: permission denied: script.sh
- [fix] zsh: illegal hardware instruction python TensorFlow M1/M2 Mac
- How to clear ZSH history of commands executed on Mac Terminal
- Ubuntu zsh: command not found: nano
- How to reload zsh shell profile file?
- macOS Ventura 13: The default interactive shell is now zsh
- zsh: exec format error eclipse M1 Mac
- fill_parent vs match_parent vs wrap_content - Android
- [Java] Bad return type in lambda expression: int cannot be converted to boolean - Java
- Cannot open or preview pdf with view only and restricted download access in Microsoft Teams - Teams
- Zsh Shell: Custom alias that you may find useful - MacOS
- vi undo redo command [Examples] - Mac-OS-X
- [Java] Read a File with UTF-8 Encoding - Java
- Save cURL Command Output to a external file - cURL
- Keyboard shortcut to close tab in Notepad++ - NotepadPlusPlus