From bd0db75f5b8d8e6f535c9a87cf26f2f34d92a180 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Aug 2014 08:44:11 -0400 Subject: [PATCH] Fix PATH clobbering in tmux --- zprofile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zprofile b/zprofile index e9821a27..0475eefb 100644 --- a/zprofile +++ b/zprofile @@ -3,6 +3,11 @@ # Browser [[ "$OSTYPE" == darwin* ]] && export BROWSER='open' +# Reset PATH to keep it from being clobbered in tmux +if [ -x /usr/libexec/path_helper ]; then + PATH='' + source /etc/zshenv +fi # Editors export EDITOR='vim'