Keep conda from constricting your brew installs - swvanderlaan/slideToolKit GitHub Wiki

Now that you have conda in combination with brew you will get the below message if you run brew doctor.

brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/username/anaconda3/bin/icu-config
  /Users/username/anaconda3/bin/krb5-config
  /Users/username/anaconda3/bin/freetype-config
  /Users/username/anaconda3/bin/xslt-config
  /Users/username/anaconda3/bin/libpng16-config
  /Users/username/anaconda3/bin/python3.7-config
  /Users/username/anaconda3/bin/libpng-config
  /Users/username/anaconda3/bin/xml2-config
  /Users/username/anaconda3/bin/python3.7m-config
  /Users/username/anaconda3/bin/python3-config
  /Users/username/anaconda3/bin/curl-config
  /Users/username/anaconda3/bin/ncursesw6-config
  /Users/username/anaconda3/bin/pcre-config

This could be a problem, or just a nuissance. You can change this.

You can add the lines below to your .bashrc file.

open -a BBEdit ~/.bashrc

(Or use another text-editor).

export SANS_ANACONDA="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

# added by Anaconda3 4.4.0 installer

export PATH="/Users/username/anaconda3/bin:$SANS_ANACONDA"

alias perseus="export PATH="\$SANS_ANACONDA" && echo Medusa decapitated."
alias medusa="export PATH="/Users/username/anaconda3/bin:\$SANS_ANACONDA" && echo Perseus defeated."

brew () {
  perseus
  command brew "$@"
  medusa
}