From 5f6c9d893714edb975fc2d890727bf2badb5eaf9 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 15 Apr 2022 17:16:44 +0100 Subject: [PATCH] Check path_helper exists before invoking it --- zshrc.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc.zsh b/zshrc.zsh index 541634c..0ccd982 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -35,7 +35,9 @@ export DEFAULT_USER="jonny" # Autoadd to PATH (neede for MacTex) # It prepends to $PATH, so we do it first then add our own -eval $(/usr/libexec/path_helper) +if [[ -f /usr/libexec/path_helper ]]; then + eval $(/usr/libexec/path_helper) +fi # Add our own dirs to the $PATH export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/opt/homebrew/sbin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/.local/bin"