docs: add default terminal info

This commit is contained in:
kenmorse 2022-04-07 01:40:06 -04:00 committed by GitHub
parent e840e406c7
commit 5f41da0788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -11,7 +11,7 @@ import InstallHomebrew from "./install-homebrew.mdx";
## Set up your terminal
As the standard terminal has issues displaying the ANSI characters correctly, we advise using
[iTerm2][iterm2] or any other modern day MacOS terminal that supports ANSI characters.
[iTerm2][iterm2] or any other modern day macOS terminal that supports ANSI characters.
:::info
To display all icons, we recommend the use of a [Nerd Font][fonts].

View file

@ -85,6 +85,18 @@ Add the following to `~/.zshrc`:
eval "$(oh-my-posh init zsh)"
```
:::tip
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
eval "$(oh-my-posh init zsh)"
fi
```
Note this will still load Oh My Posh for [iTerm2][iterm2] or any other modern day macOS terminal that supports ANSI characters.
:::
Once added, reload your profile for the changes to take effect.
```bash
@ -161,3 +173,4 @@ Restart nu shell for the changes to take effect.
</Tabs>
[clink]: https://chrisant996.github.io/clink/
[iterm2]: https://www.iterm2.com/