Created
September 9, 2022 22:00
-
-
Save eightseventhreethree/75b1d35a19835b39586c8767a290fa0a to your computer and use it in GitHub Desktop.
Brew get all caveat PATHS
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
$ 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