首页 朝夕不倦,运维

安装

用yum安装zsh,git
yum -y install zsh git

查看shell列表
cat /etc/shells

切换shell为zsh
chsh -s /bin/zsh

通过curl
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

通过wget
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

主题选择

修改主题:
vim ~/.zshrc

ZSH_THEME改成主题名
ZSH_THEME="主题名"

更新配置:
source ~/.zshrc

安装插件

zsh-syntax-highlighting

安装

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

修改配置

vim ~/.zshrc
plugins=(zsh-syntax-highlighting)

更新配置:

source ~/.zshrc

zsh-autosuggestions

安装

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

修改配置

vim ~/.zshrc
plugins=(zsh-autosuggestions)

更新配置

source ~/.zshrc




文章评论

目录