From 157e6ee20e32adb5b9af054a1ad83fd327f21272 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 18 Oct 2022 13:52:53 -0700 Subject: [PATCH] Load profile in sh emulation mode. --- dotfiles/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index a28ad38..45d88fe 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -66,8 +66,8 @@ zstyle ':completion::complete:*' use-cache on zstyle ':completion::complete:*' cache-path "${ZDOTDIR:-$HOME}/.zcompcache" # .profile is universal -. /etc/profile -. ~/.profile +emulate sh -c '. /etc/profile' +emulate sh -c '. ~/.profile' # Deduplicate the path typeset -U path