diff options
author | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-10 12:29:04 +0300 |
---|---|---|
committer | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-10 12:29:04 +0300 |
commit | d841e1d0d0bbc1260a12930d79402b93c57c828d (patch) | |
tree | f4939c8b24506a252163214f2b7da6f66ebb721e /powerlevel9k.zsh-theme | |
parent | fd3d2343547b07d74cb102dd843f8a54d9e0b79f (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.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
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 |