From efc5f193dcc2e1fb1d088fa981b60d36e178ef15 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 17 Apr 2020 09:36:43 +0200 Subject: [PATCH] Added iterm2 mark support --- zsh.d/prompts/pure/pure.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh.d/prompts/pure/pure.zsh b/zsh.d/prompts/pure/pure.zsh index aa47a4a..5f7b274 100644 --- a/zsh.d/prompts/pure/pure.zsh +++ b/zsh.d/prompts/pure/pure.zsh @@ -752,6 +752,8 @@ prompt_pure_setup() { # If a virtualenv is activated, display it in grey. PROMPT='%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)' + # Add iterm2 mark (if enabled in iterm) + PROMPT+=%{$(iterm2_prompt_mark)%} # Prompt turns red if the previous command didn't exit with 0. local prompt_indicator='%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f ' PROMPT+=$prompt_indicator