docs: fix if expression to identify terminal

This commit is contained in:
Pablo Díaz-López 2023-02-10 09:51:53 +01:00 committed by GitHub
parent 0dde300af8
commit 4401a4502d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`:
```bash
if [ $TERM_PROGRAM != "Apple_Terminal" ]; then
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh)"
fi
```