aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-01-11 23:52:12 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2023-01-11 23:52:19 +0300
commit1a4b01c2321860aadd952d661debdb29980c2e40 (patch)
tree9002d809486fbc89bf83dc880bb562cabbd850ee
parent35165798a83e2e4f2f0aa6c820e2f7fba23e0179 (diff)
work around a bug in ohmyzsh (#2152)
The bug was introduced here: https://github.com/ohmyzsh/ohmyzsh/commit/3dd83a22a160249a71631a51490fd3b89d1b3975 This causes Oh My Zsh to print \r to the terminal.
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 3f6da4fd..6bdaaf1d 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6584,7 +6584,7 @@ function _p9k_clear_instant_prompt() {
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'}
+ unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'}
if [[ -n $unexpected ]]; then
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating Oh My Zsh'