Skip to content

Instantly share code, notes, and snippets.

@shhider
Last active October 29, 2018 06:54
Show Gist options
  • Save shhider/281b61f6e21a8b73c49d05a59714e196 to your computer and use it in GitHub Desktop.
Save shhider/281b61f6e21a8b73c49d05a59714e196 to your computer and use it in GitHub Desktop.
[Homebrew cmds you need to know] #homebrew #brew #brew-update #mirror
# === basic ===
brew cleanup
# === 更换源。在天朝,你懂得 ===
# Coding.net 源
cd "$(brew --repo)" && git remote set-url origin https://git.coding.net/homebrew/homebrew.git
# 重置 brew 源
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
# === 常用的 applications ===
# mpv
# outdated
brew install mpv --with-bundle
brew linkapps mpv
# new!
brew cask install mpv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment