Merge pull request #743 from onaforeignshore/iterm2_integration

Fix iTerm2 integration with PowerLevel9k
This commit is contained in:
Ben Hilburn 2018-03-06 21:04:24 -05:00 committed by GitHub
commit 242bc34027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1624,6 +1624,9 @@ $(print_icon 'MULTILINE_LAST_PROMPT_PREFIX')'
NEWLINE=' NEWLINE='
' '
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT" [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
# Allow iTerm integration to work
[[ $ITERM_SHELL_INTEGRATION_INSTALLED == "Yes" ]] && PROMPT="%{$(iterm2_prompt_mark)%}$PROMPT"
} }