Created
September 9, 2025 09:32
-
-
Save nidr0x/37c2306fabcf414dce323565ee786630 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if type brew &>/dev/null; then | |
HOMEBREW_PREFIX=$(brew --prefix) | |
NEWPATH=${PATH} | |
# gnubin; gnuman | |
for d in ${HOMEBREW_PREFIX}/opt/*/libexec/gnubin; do NEWPATH=$d:$NEWPATH; done | |
# I actually like that man grep gives the BSD grep man page | |
#for d in ${HOMEBREW_PREFIX}/opt/*/libexec/gnuman; do export MANPATH=$d:$MANPATH; done | |
export PATH=$(echo ${NEWPATH} | tr ':' '\n' | cat -n | sort -uk2 | sort -n | cut -f2- | xargs | tr ' ' ':') | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew install autoconf bash binutils coreutils diffutils ed findutils flex gawk \n gnu-indent gnu-sed gnu-tar gnu-which gpatch grep gzip less m4 make nano \n screen watch wdiff wget zip