mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -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.
|
Once added, reload your profile for the changes to take effect.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.zshrc
|
exec zsh
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
Loading…
Reference in a new issue