diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-05-10 10:25:01 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-05-10 10:25:01 +0300 |
commit | 064f4d22097a8086eb857f04d11c00eb4b452275 (patch) | |
tree | 9695744f25cec41b4c090b2c59c878e63b374f7a | |
parent | 0a9eb73e161fd4d73140bd90c00c52602cf9aa42 (diff) |
whitelist DCS in startup console output (#2299)
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 171c26f8..31a6d621 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6605,7 +6605,9 @@ function _p9k_clear_instant_prompt() { unset _z4h_saved_screen 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\\')} + local unexpected=${${content//$'\e[?'<->'c'}//$'\e['<->' q'} + unexpected=${(S)unexpected//$'\eP'*[^$'\e']#($'\e\\')} + unexpected=${(S)unexpected//$'\e'[^$'\a\e']#($'\a'|$'\e\\')} # Visual Studio Code prints this garbage. unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'} if [[ -n $unexpected ]]; then |