aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-10 12:29:04 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-10 12:29:04 +0300
commitd841e1d0d0bbc1260a12930d79402b93c57c828d (patch)
treef4939c8b24506a252163214f2b7da6f66ebb721e
parentfd3d2343547b07d74cb102dd843f8a54d9e0b79f (diff)
Fix iTerm2 integration with PowerLevel9k
This fix allows the user to see the "little blue triangle" that is created when iTerm2 shell integration is enabled.
-rwxr-xr-xpowerlevel9k.zsh-theme3
1 files changed, 3 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index c32ccd48..c044c6b5 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1623,6 +1623,9 @@ $(print_icon 'MULTILINE_LAST_PROMPT_PREFIX')'
NEWLINE='
'
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
+
+ # Allow iTerm integration to work
+ [[ $ITERM_SHELL_INTEGRATION_INSTALLED == "Yes" ]] && PROMPT="%{$(iterm2_prompt_mark)%}$PROMPT"
}
set_default POWERLEVEL9K_IGNORE_TERM_COLORS false