MAC是一个强大的生产力工具,可是由于g*w的缘由以及网速的缘由,仍是须要一些优化和调整的node
一个强大的安装包管理工具.python
macOS 缺失的软件包的管理器git
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
复制代码
将以上命令粘贴至终端。github
脚本会在执行前暂停,并说明将它将作什么。高级安装选项在 这里 (required for Linux and Windows 10 Subsystem for Linux)。shell
参考清华的加速器npm
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
复制代码
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-science"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-science.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-python"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-python.git
brew update
复制代码
使用mac的一个缘由就是由于强大的命令行,原生终端已经很好了,可是仍是能够进一步进行优化的编程
比终端好用的多的终端vim
官网下载而后进行安装便可数组
zsh兼容bash可是显示的细节更丰富ruby
自带的,iterm2安装完以后文件夹都帮你创建好了
chsh -s /bin/zsh
复制代码
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
复制代码
修改主题:
$ vim ~/.zshrc
将ZSH_THEME改为ys
ZSH_THEME="ys"
更新配置:
$ source ~/.zshrc
复制代码
改用淘宝镜像 这样还能防止一些包要从国外下载源码再编译形成的问题
brew install node
复制代码
npm install -g cnpm --registry=https://registry.npm.taobao.org
复制代码
讲道理,n超级好用
cnpm i -g n
复制代码
最强编辑器-之一
安装插件能够参考之前的文章vscode插件分享