centos 安装ohmyzsh

git zsh

1
yum install -y git zsh wget vim

安装ohmyzsh

1
sh -c "$(wget -O- https://sl.zaqai.com/ohmyzsh.sh)"

插件

1
2
3
4
5
6
7
8
9
10
cd ~/.oh-my-zsh/custom/plugins/
git clone https://gitee.com/githubClone/zsh-autosuggestions
git clone https://gitee.com/ponponon/zsh-syntax-highlighting
git clone https://gitee.com/wangnd/zsh-completions.git

vim ~/.zshrc
# 取消第二行注释
ZSH_THEME="steeef"
plugins=(git zsh-completions zsh-autosuggestions zsh-syntax-highlighting)
alias hg="history|grep"
1
source ~/.zshrc

fzf

1
2
3
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
source ~/.zshrc