set P9K_STARTUP_CONSOLE_OUTPUT to assist in debugging startup console output problems

pull/2305/head
Roman Perepelitsa 2 years ago
parent 064f4d2209
commit 1dcd882593

@ -6610,6 +6610,7 @@ function _p9k_clear_instant_prompt() {
unexpected=${(S)unexpected//$'\e'[^$'\a\e']#($'\a'|$'\e\\')} unexpected=${(S)unexpected//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
# Visual Studio Code prints this garbage. # Visual Studio Code prints this garbage.
unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'} unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'}
typeset -g P9K_STARTUP_CONSOLE_OUTPUT=("$content" "$unexpected")
if [[ -n $unexpected ]]; then if [[ -n $unexpected ]]; then
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: ' local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating Oh My Zsh' local omz2='Updating Oh My Zsh'

Loading…
Cancel
Save