CentOS安装oh 4年前

编程语言
289
CentOS安装oh

安装zsh 和 oh-my-zsh

  1. 安装zsh
    yum install zsh

  2. 安装git
    yum install git

  3. 切换默认shell
    chsh -s /bin/zsh

  4. clone from GitHub
    git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

  5. 复制默认.zshrc
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

安装插件

语法高亮插件

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

  2. 配置
    在~/.zshrc的plugins中加入zsh-syntax-highlighting

自动补全插件

  1. 安装
    git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

  2. 配置
    在~/.zshrc的plugins中加入zsh-autosuggestions

image
浅、酱
或许是不知梦的缘故,流离之人追逐幻影。
3
发布数
0
关注者
12247
累计阅读

热门教程文档

Objective-C
29小节
Swift
54小节
Lua
21小节
PHP
52小节
Flutter
105小节
广告