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
#!/bin/sh | |
path=`pwd` | |
dry=0 | |
while test $# -gt 0 | |
do | |
case "$1" in | |
--dry) | |
dry=1 |
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
2023.8.28 | |
据多名网友回复,此方法已失效。 | |
最新解决办法请参考此贴:[v2ex: 请问 github 的两步验证(two-factor authentication)大家是怎么做的?](https://www.v2ex.com/t/967533) | |
https://www.v2ex.com/t/967533 | |
--- |
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
# 1. Install Brew (warning: at least read install at first) | |
cat "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# 2. Install Oh-my-zsh (warning: at least read install.sh at first) | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | cat | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
# 4. Install brew packages | |
brew install mas # appstore done right |