Skip to content

Commit

Permalink
work around a bug in ohmyzsh (#2152)
Browse files Browse the repository at this point in the history
The bug was introduced here: ohmyzsh/ohmyzsh@3dd83a2

This causes Oh My Zsh to print \r to the terminal.
  • Loading branch information
romkatv committed Jan 11, 2023
1 parent 3516579 commit 1a4b01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1a4b01c

Please sign in to comment.