Skip to content

Commit 1723a56

Browse files
authored
Merge pull request microsoft#160909 from CKeilbar/bugfix-terminal-prefix
Removed erroneous references to PREFIX environment variable
2 parents 1dd6759 + ae90723 commit 1723a56

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ __vsc_update_prompt() {
9898
# means the user re-exported the PS1 so we should re-wrap it
9999
if [[ "$__vsc_custom_PS1" == "" || "$__vsc_custom_PS1" != "$PS1" ]]; then
100100
__vsc_original_PS1=$PS1
101-
__vsc_custom_PS1="\[$(__vsc_prompt_start)\]$PREFIX$__vsc_original_PS1\[$(__vsc_prompt_end)\]"
101+
__vsc_custom_PS1="\[$(__vsc_prompt_start)\]$__vsc_original_PS1\[$(__vsc_prompt_end)\]"
102102
PS1="$__vsc_custom_PS1"
103103
fi
104104
if [[ "$__vsc_custom_PS2" == "" || "$__vsc_custom_PS2" != "$PS2" ]]; then

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,11 @@ if [[ -o NOUNSET ]]; then
8484
if [ -z "${RPROMPT-}" ]; then
8585
RPROMPT=""
8686
fi
87-
if [ -z "${PREFIX-}" ]; then
88-
PREFIX=""
89-
fi
9087
fi
9188
__vsc_update_prompt() {
9289
__vsc_prior_prompt="$PS1"
9390
__vsc_in_command_execution=""
94-
PS1="%{$(__vsc_prompt_start)%}$PREFIX$PS1%{$(__vsc_prompt_end)%}"
91+
PS1="%{$(__vsc_prompt_start)%}$PS1%{$(__vsc_prompt_end)%}"
9592
PS2="%{$(__vsc_continuation_start)%}$PS2%{$(__vsc_continuation_end)%}"
9693
if [ -n "$RPROMPT" ]; then
9794
__vsc_prior_rprompt="$RPROMPT"

0 commit comments

Comments
 (0)