Skip to content

Instantly share code, notes, and snippets.

@mogeko
Last active June 16, 2020 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogeko/ec213bde75ae77bed61fe7ffbb7fd111 to your computer and use it in GitHub Desktop.
Save mogeko/ec213bde75ae77bed61fe7ffbb7fd111 to your computer and use it in GitHub Desktop.
自用的 .Brewfile 备份
tap "homebrew/bundle"
tap "homebrew/core"

Configuration

Some commands have been installed with the prefix g.

If you need to use these commands with their normal names, you can add some gnubin directory to your PATH from your ~/.bashrc or ~/.bash_profile like:

GNU_TOOLCHAIN=true
if $GNU_TOOLCHAIN; then
  # base
  export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
  export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
  export PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH"
  export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
  export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
  export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
  export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/findutils/libexec/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/gawk/libexec/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/grep/libexec/gnuman:$MANPATH"
  # base-devel
  export PATH="/usr/local/opt/binutils/bin:$PATH"
  export PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH"
  export MANPATH="/usr/local/opt/binutils/share/gnuman:$MANPATH"
  export MANPATH="/usr/local/opt/gnu-which/libexec/gnuman:$MANPATH"
  # others
  #export PATH="/usr/local/opt/ed/libexec/gnubin:$PATH"
  #export PATH="/usr/local/opt/gnu-indent/libexec/gnubin:$PATH"
  #export MANPATH="/usr/local/opt/ed/libexec/gnuman:$MANPATH"
  #export MANPATH="/usr/local/opt/gnu-indent/libexec/gnuman:$MANPATH"
fi
tap "homebrew/bundle"
tap "homebrew/core"
brew "bash"
brew "coreutils"
brew "findutils"
brew "gawk"
brew "gnu-sed"
brew "gnu-tar"
brew "grep"
brew "gzip"
brew "xz"
tap "homebrew/bundle"
tap "homebrew/core"
brew "autoconf"
brew "automake"
brew "binutils"
brew "bison"
brew "findutils"
brew "flex"
brew "gawk"
brew "gnu-sed"
brew "gnu-which"
brew "gpatch"
brew "grep"
brew "groff"
brew "gzip"
brew "libtool"
brew "make"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment