配置电脑

#!/bin/bash
# 安装部分软件需要连接github,有时会连不上,可以使用国内镜像安装,或者使用阿里郎开启“网络加速”后再安装
# 安装 oh-my-zsh
# 连不上github,改用国内镜像
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
export REMOTE=https://gitee.com/imirror/ohmyzsh.git
sh -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh/tools/install.sh)"
# 安装 Command Line Tools (CLT) for Xcode
xcode-select --install
# 安装 brew,后续使用brew安装其他软件
# https://brew.sh/
# 连不上github,改用国内镜像
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
HOMEBREW_BREW_GIT_REMOTE=https://mirrors.ustc.edu.cn/brew.git
HOMEBREW_CORE_GIT_REMOTE=https://mirrors.ustc.edu.cn/homebrew-core.git
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
brew tap caskroom/cask
brew tap caskroom/cask-versions
brew tap homebrew/core
# 使用brew 安装常用软件
brew install dingtalk iterm2 alfred google-chrome xmind intellij-idea-ce tunnelblick sequel-pro jprofiler mat postman
brew install python java maven curl wget ab redis mysql elasticsearch
# 安装Docker
which docker
if [[ $? > 0 ]]; then
wget https://download.docker.com/mac/stable/Docker.dmg
open Docker.dmg
fi
前端环境搭建:https://github.com/ruoqianfengshao/laptop