oh-my-zsh安装与配置

基本组件:
yum install -y zsh git
安装 oh my zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
查看 zsh 的安装目录:which zsh
使用 chsh 命令切换使用的 shell 程序
chsh -s /usr/bin/zsh
安装 ZSH 图标字体:
git clone https://github.com/powerline/fonts.git
更换 ZSH 主题:
使用 vi 工具编辑 .zshrc文件,更改 ZSH_THEME=“robbyussell” 字段为 ZSH_THEME=“你想要的主题”
source ~/.zshrc 命令更新配置文件。
安装插件:
wd、zsh-syntax-highlighting、zsh-autosuggestions 。
依次执行:
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions.git
vi 编辑 ~/.zshrc 文件:
plugins=(git wd zsh-syntax-highlighting zsh-autosuggestions)
source /root/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
这里的路径你用root用户git的就是root,非root用户就改成你用户名字。
执行 source ~/.zshrc 命令更新 ZSH 配置。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值