美文网首页
oh-my-zsh安装

oh-my-zsh安装

作者: 寺院的研究僧 | 来源:发表于2018-05-02 09:38 被阅读9次

    install zsh first

    yum install -y zsh
    

    clone and install oh-my-zsh

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
    or
    
    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
    

    modify theme to agnoster

    sed -i 's/robbyrussell/agnoster/g' ~/.zshrc
    or
    sed -i 's/robbyrussell/ys/g' ~/.zshrc
    source ~/.zshrc
    

    change default shell to zsh

    echo $ZSH_VERSION 
    sudo chsh -s $(which zsh)
    

    相关文章

      网友评论

          本文标题:oh-my-zsh安装

          本文链接:https://www.haomeiwen.com/subject/qpyqrftx.html