Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegan Rogge <merogge@microsoft.com>2022-06-08 22:30:03 +0300
committerGitHub <noreply@github.com>2022-06-08 22:30:03 +0300
commit28f119c72accafb3ddb0aff27cae53222d8768cb (patch)
treeb206a9464bdecc8faf5443a8d941fe3115d60a97
parent48cfaa21875348e6c70610c746a3918f785235b6 (diff)
set vars to `""` if the `no_unset` option is provided to `zsh` (#151542)
fix #145581
-rw-r--r--src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh
index 46fe4c4813b..b40e0e33562 100644
--- a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh
+++ b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh
@@ -71,6 +71,14 @@ __vsc_command_complete() {
__vsc_update_cwd
}
+if [[ -o NOUNSET ]]; then
+ if [ -z "${RPROMPT-}" ]; then
+ RPROMPT=""
+ fi
+ if [ -z "${PREFIX-}" ]; then
+ PREFIX=""
+ fi
+fi
__vsc_update_prompt() {
__vsc_prior_prompt="$PS1"
__vsc_in_command_execution=""