
正文
CentOS安装oh-my-zsh并配置语法高亮和命令自动补全
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
安装zsh 和 oh-my-zsh安装zsh
yum install zsh
安装git
yum install git
切换默认shell
chsh -s /bin/zsh
clone from GitHub
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
复制默认.zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
安装插件语法高亮插件
安装
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
配置
在~/.zshrc的plugins中加入zsh-syntax-highlighting
自动补全插件
安装
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
配置
在~/.zshrc的plugins中加入zsh-autosuggestions
安装zshyum install zsh
安装gityum install git
切换默认shellchsh -s /bin/zsh
clone from GitHubgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
复制默认.zshrccp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
语法高亮插件
安装
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting配置
在~/.zshrc的plugins中加入zsh-syntax-highlighting
自动补全插件
安装
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions配置
在~/.zshrc的plugins中加入zsh-autosuggestions





