- 安装
# 安装 zsh
yum install -y zsh
# 安装 oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 添加自定义配置
vi ~/.zsh_profile
alias profile="vi ~/.zsh_profile"
alias profiled="source ~/.zshrc"
source /root/.gvm/scripts/gvm
gvm use go1.17
export GOPATH=/data/code/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
- 修改配置
vi ~/.zshrc
修改主题:ZSH_THEME="ys"
在末行添加 source ~/.zsh_profile
- 快捷键
编辑自定义配置:profile
生效自定义配置:profiled