mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
40 lines
683 B
Plaintext
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
|