Skip to content

Commit 3bc5735

Browse files
authored
restore user's ZDOTDIR for non-login shells w shell integration (microsoft#157520)
fix microsoft#157128
1 parent 3ee20fe commit 3bc5735

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,7 @@ __vsc_preexec() {
126126
}
127127
add-zsh-hook precmd __vsc_precmd
128128
add-zsh-hook preexec __vsc_preexec
129+
130+
if [[ $options[login] = off ]]; then
131+
ZDOTDIR=$USER_ZDOTDIR
132+
fi

0 commit comments

Comments
 (0)