1、终端配置
1.1 安装oh-my-zsh
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh \
| sed 's|^REPO=.*|REPO=${REPO:-mirrors/oh-my-zsh}|g' \
| sed 's|^REMOTE=.*|REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}|g')"
编辑配置文件 vim~/.zshrc 设置主题为 ZSH_THEME=“robbyrussell”
1.2 代码高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
1.3 命令提示插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
编辑配置文件,激活插件 plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
1.4 vim显示行号
cp /usr/share/vim/vimrc ~/.vimrc
进入insert模式,加上下面两行
syntax on
set nu!
1.5 终端配置vscode打开文件
alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
1.6 安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2、Go环境
go env -w GO111MODULE=on
go env -w GOPROXY

最低0.47元/天 解锁文章
3070

被折叠的 条评论
为什么被折叠?



