From cbc1ce3abba5acc6d4fb5c7ee35ed697f868a060 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 15 Sep 2022 08:38:24 +0100 Subject: [PATCH] Add grep to PATH --- zshrc.zsh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/zshrc.zsh b/zshrc.zsh index fa23222..d3c09ca 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -1,9 +1,6 @@ # Fig pre block. Keep at the top of this file. -# Fig binary can be installed to $HOME, so ammend the $PATH -export PATH="$PATH:$HOME/.local/bin" -if [ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]; then - . "$HOME/.fig/shell/zshrc.pre.zsh" -fi +[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" +# Fig pre block. Keep at the top of this file. # User configuration # history @@ -85,6 +82,7 @@ export GPG_TTY export PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH" export PATH="$(brew --prefix)/opt/findutils/libexec/gnubin:$PATH" export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH" +export PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH" # Add Totara Docker helper functions export PATH="$PATH:$HOME/git/totara-docker-dev/bin" @@ -153,6 +151,4 @@ fi eval "$(starship init zsh)" # Fig post block. Keep at the bottom of this file. -if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then - . "$HOME/.fig/shell/zshrc.post.zsh" -fi +[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"