mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
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:
parent
ef8055eb08
commit
3e23bd30dd
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue