Here&#x27;s a quick and dirty way to opt out for BASH and ZSH users for easy copy&#x2F;pasting.<p>BASH:<p><pre><code>  cat &lt;&lt;EOF &gt;&gt; .bashrc
  # Opt out of Homebrew analytics
  export HOMEBREW_NO_ANALYTICS=1
  if [[ -e &quot;$HOME&#x2F;.homebrew_analytics_user_uuid&quot; ]]; then
    rm -f &quot;$HOME&#x2F;.homebrew_analytics_user_uuid&quot;
  fi
  EOF
</code></pre>
ZSH:<p><pre><code>  cat &lt;&lt;EOF &gt;&gt; .zshrc
  # Opt out of Homebrew analytics
  export HOMEBREW_NO_ANALYTICS=1
  if [[ -e &quot;$HOME&#x2F;.homebrew_analytics_user_uuid&quot; ]]; then
    rm -f &quot;$HOME&#x2F;.homebrew_analytics_user_uuid&quot;
  fi
  EOF

</code></pre>
Cheers.