安装zsh配置oh-my-zsh和自动补全插件

流过昼夜 提交于 2019-12-02 00:47:35

Linux学习笔记

Centsos 安装zsh配置oh-my-zsh和自动补全工具

  • 查看当前shell
    echo $SHELL
  • 安装zsh
    yum install -y zsh
  • 切换默认shell
    chsh -s /bin/zsh
  • 安装git
    yum install -y git
  • 安装oh-my-zsh
  1. 自动安装
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  2. 手动安装
    git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
  3. 复制配置文件
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
  4. 修改主题
    ZSH_THEME="ys”
  • 安装自动补全插件
    官网:Incremental completion on zsh
    wget -O incr-0.2.zsh https://mimosa-pudica.net/src/incr-0.2.zsh
    source incr*.zsh
  • 重新打开终端,以使配置生效
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!