美文网首页
个人iTerm配置

个人iTerm配置

作者: 飞羽田海 | 来源:发表于2022-05-09 18:24 被阅读0次
  • 1.下载并安装iTerm
    iTerm下载链接
  • 2.安装 Oh My Zsh
     sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
  • 3.安装主题(powerlevel9k)和语法高亮(zsh-syntax-highlighting)插件
     git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
     git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    
  • 4.配置.zshrc
    export ZSH="/Users/mac/.oh-my-zsh"
    export TERM="xterm-256color"
    
    # 配置时 切记不要留空格
    # 默认主题
    # ZSH_THEME="robbyrussell"
    # 当前使用的主题
    ZSH_THEME="powerlevel9k/powerlevel9k"
    # 不显示hostname
    DEFAULT_USER=`id -un`
    # 右侧不显示时间和状态
    POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
    # 光标显示在下一行
    # POWERLEVEL9K_PROMPT_ON_NEWLINE=true
    plugins=(git zsh-syntax-highlighting)
    
  • 5.导入配置并按照流程设置即可
    下载地址
    最终效果: image.png

相关文章

网友评论

      本文标题:个人iTerm配置

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