更新或下载xcode
这个是必须的,否则在执行安装命令时,也会自动去下载,命令行自动下载反而速度更慢。如果有爬墙,那请PASS
安装 brew
方式一
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装成功后替换成国内镜像
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
方式二
如果是国外速度很快,国内就很慢
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install.sh
编辑brew_install.sh文件
#注释掉,在前面加#
#HOMEBREW_REPO = "https://github.com/Homebrew/homebrew"
#然后复制一个
HOMEBREW_REPO = "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
//////
/////
#注释掉,在前面加#
#CORE_TAP_REPO = "https://github.com/Homebrew/homebrew-core"
#然后复制一个
CORE_TAP_REPO = 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git'
保持好该文件,并给该文件权限
chmod +x brew_install.sh
最后执行 ./brew_install.sh
清华镜像帮助页面
https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
设置 bintray镜像
临时替换
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
长期替换
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
设置ll等命令
vim ~/.bash_profile
加入如下(如果已经存在了,就不需要重复加入)
#!/usr/bash
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
应用生效
source ~/.bash_profile
安装开发工具
安装 git
brew install git
下载安装sourceTree
https://www.sourcetreeapp.com/
安装终端 zoc 7
安装文本编辑器 vscode
VS code 推荐
下载地址 https://code.visualstudio.com/
以下部分来自 https://segmentfault.com/a/1190000006697219
安装插件
markdown-preview-enhanced
HTML Snippets
超级实用且初级的 H5代码片段以及提示
HTML CSS Support
让 html 标签上写class 智能提示当前项目所支持的样式
Debugger for Chrome
让 vscode 映射 chrome 的 debug功能,静态页面都可以用 vscode 来打断点调试
jQuery Code Snippets
jquery 重度患者
vscode-icon
让 vscode 资源树目录加上图标
Path Intellisense
自动路劲补全
HTMLHint
html代码检测
Project Manager
在多个项目之前快速切换的工具
beautify
格式化代码的工具
Bootstrap 3 Sinnpet
常用 bootstrap
Atuo Rename Tag
修改 html 标签,自动帮你完成尾部闭合标签的同步修改
GitLens
丰富的git日志插件
fileheader
顶部注释模板,可定义作者、时间等信息,并会自动更新最后修改时间
filesize
在底部状态栏显示当前文件大小,点击后还可以看到详细创建、修改时间
Bracket Pair Colorizer
让括号拥有独立的颜色,易于区分。可以配合任意主题使用。
Dracula
主题,
打开 vscode 编辑器,在插件页搜索 想要的插件进行安装
vscode
https://code.visualstudio.com/
安装 IDEA ,phpstorm ,webstorm ,Gogland
数据库管理工具 Navicat Premium for Mac
docker
https://www.docker.com/community-edition#/download
https://store.docker.com/editions/community/docker-ce-desktop-mac
安装 java
https://blog.csdn.net/fenglailea/article/details/69501375
安装 go
https://blog.csdn.net/fenglailea/article/details/70216964
https://blog.csdn.net/fenglailea/article/details/26163927#t9
安装 docker 版 nginx,php,mysql
https://github.com/foxiswho/docker-compose-nginx-php-mysql
安装 docker 版 elasticsearch logtsash kibana
https://github.com/foxiswho/docker-elk
redis 安装Redis可视化工具-Redis Desktop Manager
https://blog.csdn.net/gavinguo1987/article/details/75125775