summaryrefslogtreecommitdiff
path: root/src/plugins/terminal/shellintegrations/shellintegration-profile.zsh
blob: 724e1f287908eb1f4aba801833d0072de872245f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

if [[ $options[norcs] = off && -o "login" &&  -f $USER_ZDOTDIR/.zprofile ]]; then
	VSCODE_ZDOTDIR=$ZDOTDIR
	ZDOTDIR=$USER_ZDOTDIR
	. $USER_ZDOTDIR/.zprofile
	ZDOTDIR=$VSCODE_ZDOTDIR

	# Apply any explicit path prefix (see #99878)
	if (( ${+VSCODE_PATH_PREFIX} )); then
		export PATH=$VSCODE_PATH_PREFIX$PATH
	fi
	builtin unset VSCODE_PATH_PREFIX
fi