linux安装 oh my zsh

oh my zsh

安装zsh

yum install -y zsh

安装git

yum install -y git

基本安装
通过curl命令安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

通过wget命令安装

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

安装好之后,需要把 Zsh 设置为当前用户的默认 Shell(这样新建标签的时候才会使用 Zsh):

chsh -s /bin/zsh 

安装 zsh-syntax-highlighting 插件

自动建议填充插件

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

然后编辑vim ~/.zshrc文件,找到plugins配置,增加zsh-autosuggestions插件。

猜你喜欢

转载自blog.csdn.net/weixin_43671282/article/details/88231333