Skip to content

Commit 0f46368

Browse files
authored
Merge pull request #21910 from sumanthratna/shellenv-fpath-idempotency
shellenv: export FPATH so child zsh shells inherit fpath
2 parents 410b1fc + 25984a5 commit 0f46368

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Library/Homebrew/cmd/shellenv.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ homebrew-shellenv() {
8181
if [[ "${HOMEBREW_SHELL_NAME}" == "zsh" ]] || [[ "${HOMEBREW_SHELL_NAME}" == "-zsh" ]]
8282
then
8383
echo "fpath[1,0]=\"${HOMEBREW_PREFIX}/share/zsh/site-functions\";"
84+
echo "export FPATH;"
8485
fi
8586
if [[ -n "${PATH_HELPER_ROOT}" ]]
8687
then

0 commit comments

Comments
 (0)