From 4333bce850fb065e36c62f8b1b2b412048887118 Mon Sep 17 00:00:00 2001 From: Eitot <Eitot@users.noreply.github.com> Date: Wed, 27 Apr 2016 21:49:09 +0200 Subject: [PATCH] Clarify opt-out commands * Clarify opt-out commands * Partially rewrite opt-out paragraph --- share/doc/homebrew/Analytics.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/share/doc/homebrew/Analytics.md b/share/doc/homebrew/Analytics.md index 3cb406df43..e22f11607b 100644 --- a/share/doc/homebrew/Analytics.md +++ b/share/doc/homebrew/Analytics.md @@ -43,5 +43,15 @@ Homebrew's analytics are accessible to Homebrew's current maintainers. Contact @ ## How? The code is viewable in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.rb and https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.sh. They are done in a separate background process and fail fast to avoid delaying any execution. They will fail immediately and silently if you have no network connection. -## Opting-out -If after everything you've read you still wish to opt-out of Homebrew's analytics you may set `HOMEBREW_NO_ANALYTICS=1` in your environment or run `git config --file="$(brew --repository)/.git/config" --replace-all homebrew.analyticsdisabled true` which will prevent analytics from ever being sent when either of them have been set. +## Opting out +Homebrew analytics helps us maintainers and leaving it on is appreciated. However, if you want to opt out of Homebrew's analytics, you can set this variable in your environment: + +```sh +export HOMEBREW_NO_ANALYTICS=1 +``` + +Alternatively, this will prevent analytics from ever being sent: + +```sh +git config --file="$(brew --repository)/.git/config" --replace-all homebrew.analyticsdisabled true +``` -- GitLab