mirror of
https://github.com/akelge/zsh
synced 2025-07-04 13:39:07 +00:00
Added iterm2 mark support
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user