美文网首页
oh-my-zsh使用

oh-my-zsh使用

作者: Willworkgogogo | 来源:发表于2017-11-28 13:46 被阅读0次

    1、安装

    // curl 方法安装
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
    // homebrew 方法安装
    brew install zsh zsh-completions
    
    // 成功后或已安装zsh, 检查版本, 输出版本必须高于v4.3.9
    zsh --version
    
    

    2、设置为默认shell

    chsh -s $(which zsh)
    // 然后重启
    

    3、设置主体

    vi ~/.zshrc
    
    // 找到
    ZSH_THEME="agnoster"
    
    // 设置好后
    // 需执行
    source ~/.zshrc
    
    

    设置mac原生Terminal终端主题

    // 1、下载主题
    git clone git://github.com/altercation/solarized.git
    
    // 2、找到下载的内容
    // solarized ----> iterm2-colors-solarized 下依次双击 Solarized Dark.itermcolors 和 Solarized Light.itermcolors,这两个主题将自动添加至终端主题里,如下图:
    可选中设置一个为默认主题。
    
    终端主题添加成功 我现在的样式

    相关文章

      网友评论

          本文标题:oh-my-zsh使用

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