aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-03-20 16:58:15 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-03-20 16:58:15 +0300
commit65599411ec83505a091f68489617316dec355510 (patch)
tree4439f2dcfb33b978d06bc3615ba26cf21d6a2256
parente13283ec7dd02d97363303d97d7d36f7521a1344 (diff)
ignore garbage printed by vscode
-rw-r--r--internal/p10k.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 8eabcaaf..f60f66f3 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6536,6 +6536,8 @@ function _p9k_clear_instant_prompt() {
fi
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
local unexpected=${(S)${${content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
+ # Visual Studio Code prints this garbage.
+ unexpected=${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}
if [[ -n $unexpected ]]; then
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating Oh My Zsh'