Skip to content

Commit

Permalink
Add more GNU utils to PATH to override system defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jan 28, 2024
1 parent 6acbad7 commit 3f63379
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dotfiles/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ setopt histignorespace
export EDITOR="code"

# Extend PATH
# 1. Add Homebrew versions of core utilities to start of PATH to override defaults
# 1. Add GNU versions of core utilities to start of PATH to override defaults
# 2. Add X11 (XQuartz) to end of PATH
# NOTE: Homebrew GNU paths cause coreutils 'brew doctor' warnings which is fine
# NOTE: Overriding core utils with GNU equivalents causes 'brew doctor' warnings
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/findutils/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
export PATH="$PATH:/opt/X11/bin"

# Source Antidote
Expand Down

0 comments on commit 3f63379

Please sign in to comment.