Skip to content

Commit 3265643

Browse files
authored
Fix custom zsh_history ignored (microsoft#166813)
1 parent 3b29d21 commit 3265643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [[ "$VSCODE_INJECTION" == "1" ]]; then
2323
ZDOTDIR=$VSCODE_ZDOTDIR
2424
fi
2525

26-
if [[ -f $USER_ZDOTDIR/.zsh_history ]]; then
26+
if [[ -f $USER_ZDOTDIR/.zsh_history && -z HISTFILE ]]; then
2727
HISTFILE=$USER_ZDOTDIR/.zsh_history
2828
fi
2929
fi

0 commit comments

Comments
 (0)