Last active
May 10, 2021 13:40
-
-
Save phyrog/427f314f46f5646f6b7640223128b562 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
BREW_HOME="$(brew --prefix)" | |
if [[ -d $BREW_HOME/opt/grep/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/grep/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/gnu-sed/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/gnu-sed/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/findutils/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/findutils/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/gawk/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/gawk/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/gnu-tar/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/gnu-tar/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/gnu-indent/libexec/gnubin ]]; then | |
export PATH="$BREW_HOME/opt/gnu-indent/libexec/gnubin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/diffutils/bin ]]; then | |
export PATH="$BREW_HOME/opt/diffutils/bin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/git/bin ]]; then | |
export PATH="$BREW_HOME/opt/git/bin:$PATH" | |
fi | |
if [[ -d $BREW_HOME/opt/util-linux/bin ]]; then | |
export PATH="$BREW_HOME/opt/util-linux/bin:$PATH" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment