美文网首页
Mac下OH MY ZSH的安装及配置

Mac下OH MY ZSH的安装及配置

作者: liruce | 来源:发表于2019-02-14 12:25 被阅读10次

    1.下载oh my zsh:

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh

    2.下载iTerm2:

    https://www.iterm2.com

    3.安装powerline字体:

    # clone

    git clone https://github.com/powerline/fonts.git --depth=1

    # install

    cd fonts

    ./install.sh

    # clean-up a bit

    cd ..

    rm -rf fonts

    在iterm2里面修改字体和背景色:


    4.改bas为zsh:

    chsh -s /bin/zsh

    5.安装插件:

    a.zsh-autosuggestions:

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    b.zsh-syntax-highlighting:

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

    c.powerlevel9k

    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

    修改.zshrc:

    ZSH_THEME="powerlevel9k/powerlevel9k"

    6.修改.zshrc文件:



    7.source ~/.zshrc


    相关文章

      网友评论

          本文标题:Mac下OH MY ZSH的安装及配置

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