mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
docs: add default terminal info
This commit is contained in:
parent
e840e406c7
commit
5f41da0788
|
@ -11,7 +11,7 @@ import InstallHomebrew from "./install-homebrew.mdx";
|
||||||
## Set up your terminal
|
## Set up your terminal
|
||||||
|
|
||||||
As the standard terminal has issues displaying the ANSI characters correctly, we advise using
|
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
|
:::info
|
||||||
To display all icons, we recommend the use of a [Nerd Font][fonts].
|
To display all icons, we recommend the use of a [Nerd Font][fonts].
|
||||||
|
|
|
@ -85,6 +85,18 @@ Add the following to `~/.zshrc`:
|
||||||
eval "$(oh-my-posh init zsh)"
|
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.
|
Once added, reload your profile for the changes to take effect.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -161,3 +173,4 @@ Restart nu shell for the changes to take effect.
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
[clink]: https://chrisant996.github.io/clink/
|
[clink]: https://chrisant996.github.io/clink/
|
||||||
|
[iterm2]: https://www.iterm2.com/
|
||||||
|
|
Loading…
Reference in a new issue