Skip to main content

iTerm

Whatโ€‹

Inserts the iTerm2 shell integration prompt mark for zsh, and bash. For more information, read the shell integration page on the developer's website.

info

You will need to add export ITERM2_SQUELCH_MARK=1 before the shell integration script is sourced.

Fish shell

For fish, you can make use of Oh My Posh's set_poshcontext function to set the prompt mark. Add the following line after initialising Oh My Posh:

function set_poshcontext
iterm2_prompt_mark
end

You do not need to add this segment.

Sample Configurationโ€‹

{
"type": "iterm",
"interactive": true,
"style": "plain",
"foreground": "#80ffea",
"template": "{{ .PromptMark }}"
}

Template (info)โ€‹

default template
{{ .PromptMark }}