From f21a2e3c46fc95fd2ccd0ecfb34da23ed5dc5d7a Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 16 Oct 2019 10:43:07 +0200 Subject: [PATCH] add ITERM_SHELL_INTEGRATION_INSTALLED to param sig; inline iterm2_prompt_mark --- internal/p10k.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 820a3457..7f731888 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4413,7 +4413,7 @@ _p9k_init_prompt() { fi if [[ $ITERM_SHELL_INTEGRATION_INSTALLED == Yes ]]; then - _p9k_prompt_prefix_left+="%{$(iterm2_prompt_mark)%}" + _p9k_prompt_prefix_left+=$'%{\e]133;A\a%}' fi [[ -o transient_rprompt && -n "$_p9k_line_segments_right[1,-2]" ]] || @@ -4458,7 +4458,8 @@ _p9k_must_init() { '${ZSH_VERSION}' '${ZSH_PATCHLEVEL}' '${(%):-%n}' '${GITSTATUS_LOG_LEVEL}' '${GITSTATUS_ENABLE_LOGGING}' '${GITSTATUS_DAEMON}' '${GITSTATUS_NUM_THREADS}' '${DEFAULT_USER}' '${ZLE_RPROMPT_INDENT}' '${P9K_SSH}' '${__p9k_ksh_arrays}' - '${__p9k_sh_glob}' '${parameters[transient_rprompt]}' 'v8') + '${__p9k_sh_glob}' '${parameters[transient_rprompt]}' '${ITERM_SHELL_INTEGRATION_INSTALLED}' + 'v8') IFS=$'\2' param_sig="${(e)param_sig}" [[ $param_sig == $_p9k_param_sig ]] && return 1 [[ -n $_p9k_param_sig ]] && _p9k_deinit