From a55a9add854793808c210bccde5ca6ffa7f1f09c Mon Sep 17 00:00:00 2001 From: Binbin Qian <7856168+qianbinbin@users.noreply.github.com> Date: Sun, 9 Apr 2023 03:05:11 +0800 Subject: [PATCH] Update 1970-01-01-homebrew.md Add https://github.com/Homebrew/homebrew-services --- help/_posts/1970-01-01-homebrew.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/help/_posts/1970-01-01-homebrew.md b/help/_posts/1970-01-01-homebrew.md index e8b47ae..58e3a46 100644 --- a/help/_posts/1970-01-01-homebrew.md +++ b/help/_posts/1970-01-01-homebrew.md @@ -8,7 +8,7 @@ mirrorid: homebrew **注:该镜像是 Homebrew / Linuxbrew 源程序以及 formula / cask 索引的镜像(即 `brew update` 时所更新内容)。本镜像站同时提供相应的二进制预编译包的镜像,请参考 [Homebrew bottles 镜像使用帮助](https://{{ site.hostname }}/help/homebrew-bottles/)** -本站提供了 组织下的以下 `repo`:`brew`, `homebrew-core`, `homebrew-cask`, `homebrew-cask-fonts`, `homebrew-cask-drivers`, `homebrew-cask-versions`, `homebrew-command-not-found`, `install`。 +本站提供了 组织下的以下 `repo`:`brew`, `homebrew-core`, `homebrew-cask`, `homebrew-cask-fonts`, `homebrew-cask-drivers`, `homebrew-cask-versions`, `homebrew-command-not-found`, `homebrew-services`, `install`。 日常使用,可设置如下环境变量使用本站提供的 Homebrew 镜像: @@ -103,11 +103,12 @@ brew tap --custom-remote --force-auto-update homebrew/cask-fonts https://{{ site brew tap --custom-remote --force-auto-update homebrew/cask-drivers https://{{ site.hostname }}/git/homebrew/homebrew-cask-drivers.git brew tap --custom-remote --force-auto-update homebrew/cask-versions https://{{ site.hostname }}/git/homebrew/homebrew-cask-versions.git brew tap --custom-remote --force-auto-update homebrew/command-not-found https://{{ site.hostname }}/git/homebrew/homebrew-command-not-found.git +brew tap --custom-remote --force-auto-update homebrew/services https://{{ site.hostname }}/git/homebrew/homebrew-services.git brew update # 或使用下面的几行命令自动设置 export HOMEBREW_CORE_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/homebrew-core.git" -for tap in core cask{,-fonts,-drivers,-versions} command-not-found; do +for tap in core cask{,-fonts,-drivers,-versions} command-not-found services; do brew tap --custom-remote --force-auto-update "homebrew/${tap}" "https://{{ site.hostname }}/git/homebrew/homebrew-${tap}.git" done brew update @@ -164,7 +165,7 @@ git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew unset HOMEBREW_API_DOMAIN unset HOMEBREW_CORE_GIT_REMOTE BREW_TAPS="$(BREW_TAPS="$(brew tap 2>/dev/null)"; echo -n "${BREW_TAPS//$'\n'/:}")" -for tap in core cask{,-fonts,-drivers,-versions} command-not-found; do +for tap in core cask{,-fonts,-drivers,-versions} command-not-found services; do if [[ ":${BREW_TAPS}:" == *":homebrew/${tap}:"* ]]; then # 只复原已安装的 Tap brew tap --custom-remote "homebrew/${tap}" "https://github.com/Homebrew/homebrew-${tap}" fi