Skip to content

Commit 8b889f1

Browse files
meganroggeTyriar
andauthored
run zsh startup files (microsoft#144196) (microsoft#144210)
Co-authored-by: Daniel Imms <[email protected]>
1 parent 05a5699 commit 8b889f1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# ---------------------------------------------------------------------------------------------
5-
65
autoload -Uz add-zsh-hook
76

7+
if [ -f ~/.zshenv ]; then
8+
. ~/.zshenv
9+
fi
10+
if [[ -o "login" && -f ~/.zprofile ]]; then
11+
. ~/.zprofile
12+
fi
13+
if [ -f ~/.zshrc ]; then
14+
. ~/.zshrc
15+
fi
16+
unset ZDOTDIR # ensure ~/.zlogout runs as expected
17+
818
IN_COMMAND_EXECUTION="1"
919
LAST_HISTORY_ID=0
1020

0 commit comments

Comments
 (0)