mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
ignore garbage printed by vscode
This commit is contained in:
parent
e13283ec7d
commit
65599411ec
1 changed files with 2 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue