oh-my-posh/website/docs/segments/iterm.mdx
2022-06-03 20:42:25 +02:00

40 lines
683 B
Plaintext

---
id: iterm
title: iTerm
sidebar_label: iTerm
---
## What
Inserts the iTerm2 shell integration prompt mark for zsh, bash, and fish.
For more information, read the [shell integration page][int-page] on
the developer's website.
:::info
You will need to set env var `ITERM2_SQUELCH_MARK = 1` prior to initiating Oh My Posh.
:::
## Sample Configuration
```json
{
"type": "iterm",
"style": "plain",
"foreground": "#80ffea",
"template": "{{ .PromptMark }}"
}
```
## Template ([info][templates])
:::note default template
```template
{{ .PromptMark }}
```
:::
[templates]: /docs/configuration/templates
[int-page]: https://iterm2.com/documentation-shell-integration.html