###########APP安装(可全选梭哈到终端安装)##########

################################/usr/local/Caskroom###########

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

brew install visual-studio-code --cask

brew install free-download-manager --cask
# brew install bilibili --cask
brew install qq --cask
brew install qqmusic --cask
brew install thunder --cask
brew install typora --cask
brew install wechat --cask
#brew install videofusion --cask #剪映

#brew install wechatwebdevtools --cask
brew install iterm2 --cask
# defaults delete com.googlecode.iterm2
brew install intellij-idea --cask
#brew install datagrip --cask
brew install microsoft-excel --cask
#brew install nutstore --cask ##不确定能不能装坚果云,反正我失败了手动装
#brew install virtualbox --cask
brew install google-chrome --cask
brew install postman --cask #接口测试工具
#brew install balenaetcher --cask ##写盘工具
brew install keka --cask
brew install sogouinput --cask;open /usr/local/Caskroom/sogouinput/*/sogou_mac_*.app
brew install datagrip --cask
#下载特别慢的执行
#走代理输入: export ALL_PROXY=socks5://127.0.0.1:1080
#brew install sublime-text --cask
#brew install microsoft-edge --cask
brew install ngrok --cask


###############/usr/local/Cellar########################

1
2
3
4
5
6
7
8
brew install zsh-syntax-highlighting zsh-autosuggestions #zsh插件环境已配好了
brew install ranger
#ranger --copy-config=all
brew install maven
brew install neovim
brew install trash
#brew install gradle

#安装jdk8

1
2
3
brew install openjdk@8 
#建立软连接
sudo ln -sfn /usr/local/opt/openjdk@8/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-8.jdk

#安装jdk11

1
2
3
4
brew install openjdk@11
#建立软连接
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
brew install maven

#git换源

1
2
3
4
5
6
7
8
#brew脚本安装时会自己安装git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
brew update

#yabai 平铺式桌面安装

1
2
3
4
5
6
7
8
9
10
11
12
#安装yabai
brew tap koekeishiya/formulae
brew install yabai
# start yabai as a service
brew services start koekeishiya/formulae/yabai #配置就是用软链接配置的
#安装快捷键支持
brew install koekeishiya/formulae/skhd

#安装spacebar
#brew install somdoron/formulae/spacebar
#brew services start spacebar

#安装nodejs和npm

1
2
3
4
5
6
brew install nodejs
# 换源
sudo npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist --global
# 这里不建议装cnpm会出问题
#sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

#npm安装管理版本工具n

1
2
3
4
5
6
7
8
npm install -g n
# 切换版本 sudo n 这里填版本号
# 例:
# sudo n 14.15.0
# sudo n 12.22.2
# 列出所有node版本
# n ls-remote --all
# n ls

#npm安装yarn

1
npm install -g yarn

#npm安装vue

1
npm install -g @vue/cli

#npm安装hexo(博客框架)

1
npm install hexo-cli -g 

#npm安装axios(博客框架)

1
npm install axios -g 

#zookeeper

1
2
3
4
5
6
7
8
9
brew install zookeeper
#To have 要立即启动zookeeper并在登录时重新启动,请执行以下操作:
brew services start zookeeper
#或者,如果您不想要/不需要后台服务,您可以运行:
zkServer start