Skip to content

Commit

Permalink
Put GNU grep and tar first on $PATH
Browse files Browse the repository at this point in the history
GNU tar was added to the Brewfile in commit ba8623e. Commit 873df71
later modified `.zshrc` to put GNU binaries first on `$PATH` so that
the GNU programs are used instead of the macOS BSD defaults.

Commit 873df71 missed GNU `grep` and `tar`. This commit will put them
first on `$PATH`.
  • Loading branch information
br3ndonland committed Oct 1, 2023
1 parent 4ae13df commit 34190c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ else
fi
TTY=$(tty)
GNU_FINDUTILS_BIN_DIR=$HOMEBREW_PREFIX/opt/findutils/libexec/gnubin
GNU_GREP_BIN_DIR=$HOMEBREW_PREFIX/opt/grep/libexec/gnubin
GNU_SED_BIN_DIR=$HOMEBREW_PREFIX/opt/gsed/libexec/gnubin
GNU_TAR_BIN_DIR=$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin
PIPX_BIN_DIR=$HOME/.local/bin
export \
EDITOR=$editor \
GIT_EDITOR=$editor \
GPG_TTY=$TTY \
HOMEBREW_NO_ANALYTICS=1 \
PATH=$PIPX_BIN_DIR:$GNU_FINDUTILS_BIN_DIR:$GNU_SED_BIN_DIR:$PATH \
PATH=$PIPX_BIN_DIR:$GNU_FINDUTILS_BIN_DIR:$GNU_GREP_BIN_DIR:$GNU_SED_BIN_DIR:$GNU_TAR_BIN_DIR:$PATH \
PIPX_BIN_DIR=$PIPX_BIN_DIR

### aliases
Expand Down

0 comments on commit 34190c7

Please sign in to comment.