• 首页
  • >
  • Notes
  • >
  • MacBook终端美化
  • MacBook终端美化

    Time:2024-08-30 / View:305

    第一步:安装字体文件

    前往 https://github.com/romkatv/powerlevel10k#manual-font-installation 下载并安装 MesloLGS NF Regular.ttf

    第二步:安装zsh

    brew install zsh
    
    chsh -s /bin/zsh
    

    第三步:安装 Powerlevel10k

    git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
    

    zsh 的配置文件 vim ~/.zshrc 中设置 ZSH_THEME="powerlevel10k/powerlevel10k"

    第四步:安装插件

    brew install autojump
    
    plugins=(
      git 
      autojump 
      zsh-autosuggestions 
      zsh-syntax-highlighting 
    )
    
    source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
    
    source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
    
    source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
    
    

     

     

    已是最新文章

    发布留言