mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
docs: fix if expression to identify terminal
This commit is contained in:
parent
0dde300af8
commit
4401a4502d
|
@ -98,7 +98,7 @@ eval "$(oh-my-posh init zsh)"
|
||||||
As the standard terminal has issues displaying the ANSI characters correctly, you might want to skip loading just for that terminal and instead of the line above, place this in your `~/.zshrc`:
|
As the standard terminal has issues displaying the ANSI characters correctly, you might want to skip loading just for that terminal and instead of the line above, place this in your `~/.zshrc`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
if [ $TERM_PROGRAM != "Apple_Terminal" ]; then
|
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
|
||||||
eval "$(oh-my-posh init zsh)"
|
eval "$(oh-my-posh init zsh)"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue