Last active
October 29, 2018 06:54
-
-
Save shhider/281b61f6e21a8b73c49d05a59714e196 to your computer and use it in GitHub Desktop.
[Homebrew cmds you need to know] #homebrew #brew #brew-update #mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === 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