Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eightseventhreethree/75b1d35a19835b39586c8767a290fa0a to your computer and use it in GitHub Desktop.
Save eightseventhreethree/75b1d35a19835b39586c8767a290fa0a to your computer and use it in GitHub Desktop.
Brew get all caveat PATHS
$ brew info --installed --json | jq '.[] | select((.caveats != null) and (.caveats | test("path"; "i"))) | .caveats' | grep -oE ' PATH=.*:\$PATH'| sed 's/[\"]//g' | sed 's/PATH=/export PATH=/g'
export PATH=$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/gnu-indent/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/gnu-which/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/grep/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/libtool/libexec/gnubin:$PATH
export PATH=$(brew --prefix)/opt/make/libexec/gnubin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment