美文网首页工具类文章
iterm + oh-my-zsh = 好看的终端~

iterm + oh-my-zsh = 好看的终端~

作者: 精神病患者link常 | 来源:发表于2019-07-05 15:58 被阅读9次
    image.png

    下载iterm https://www.iterm2.com/

    安装 oh-my-zsh

    wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
    

    修改主题

    $ vim ~/.zshrc
    
    image.png

    主题地址 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

    i进行修改
    esc 退出修改
    :wq 保存退出

    重启iterm

    ❌❌❌❌出现乱码


    image.png

    需要下载字体

    需要创建一个文件夹,cd 到文件夹
    git clone https://github.com/powerline/fonts.git --depth=1
    cd fonts
    ./install.sh
    

    ❌❌❌❌LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

    git config --global --unset http.proxy
    git config --global --unset https.proxy
    

    iterm 选择一种字体

    image.png

    将iterm设置为默认终端

    chsh -s /bin/zsh
    设置系统的终端为默认终端
    chsh -s /bin/bash

    设置背景图片

    iTerm2 -> Preferences -> Profiles -> Window -> BackGround Image

    相关文章

      网友评论

        本文标题:iterm + oh-my-zsh = 好看的终端~

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