From 119e4039ef9068fa96490a90c559e7594843ec22 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Sat, 17 Aug 2024 09:34:01 +0200 Subject: [PATCH] force shell integration when running under vscode integrated terminal with shell integration enabled --- internal/p10k.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index d2d261b..fb724cf 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -9483,7 +9483,11 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file && -n $__p9k_instant_p zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null fi -typeset -g P9K_VERSION=1.20.10 +typeset -g P9K_VERSION=1.20.11 + +if [[ ${VSCODE_SHELL_INTEGRATION-} == <1-> && ${+__p9k_force_term_shell_integration} == 0 ]]; then + typeset -gri __p9k_force_term_shell_integration=1 +fi unset VSCODE_SHELL_INTEGRATION _p9k_init_ssh