Skip to content

Instantly share code, notes, and snippets.

@nidr0x
Created September 9, 2025 09:32
Show Gist options
  • Save nidr0x/37c2306fabcf414dce323565ee786630 to your computer and use it in GitHub Desktop.
Save nidr0x/37c2306fabcf414dce323565ee786630 to your computer and use it in GitHub Desktop.
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
@nidr0x
Copy link
Author

nidr0x commented Sep 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment