From 91df796366f014e0673ded8e5ae92ab2a290de98 Mon Sep 17 00:00:00 2001 From: GeekerHWH Date: Sat, 8 Mar 2025 10:53:17 +0800 Subject: [PATCH] [bugfix]: if condition of __is_report_prompt is more precise to prevent bash error prompts after each command. --- shell/shellIntegration.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shellIntegration.bash b/shell/shellIntegration.bash index 163adde..f05821b 100644 --- a/shell/shellIntegration.bash +++ b/shell/shellIntegration.bash @@ -61,7 +61,7 @@ __is_update_cwd() { } __is_report_prompt() { - if ((BASH_VERSINFO[0] >= 4)); then + if ((BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] >= 4)); then __is_prompt=${__is_original_PS1@P} else __is_prompt=${__is_original_PS1}