docs: improve zsh example with correct initialization

For zsh, eval isn't the correct way to reload.
Changed to `exec zsh`, which could also be `exec zsh -l` for login shell.

This is helpful when reloading to avoid scope and other issues. See for example a brief write-up [reload-zsh-configuration](https://batsov.com/articles/2022/09/15/reload-zsh-configuration/)
This commit is contained in:
sheldonhull 2022-10-18 11:54:31 -05:00 committed by Jan De Dobbeleer
parent ef8055eb08
commit 3e23bd30dd

View file

@ -106,7 +106,7 @@ Note this will still load Oh My Posh for [iTerm2][iterm2] or any other modern da
Once added, reload your profile for the changes to take effect.
```bash
source ~/.zshrc
exec zsh
```
</TabItem>