mirror of https://github.com/akelge/zsh
Added iterm2 mark support
This commit is contained in:
parent
0068ef4865
commit
efc5f193dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue