终端美化和命令行加强

准备阶段 需要homebrew包管理器 1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 安装iterm2 1 brew install iterm2 下载hack nerd字体 1 2 3 git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1 cd nerd-fonts ./install.sh iterm2 设置默认主题 iterm2配置hack nerd字体 图片来自https://blog.csdn.net/SmallTeddy/article/details/124850597 侵删 安装oh-my-zsh 1 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 安装主题powerlevel10k 1 git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k 在***.zshrc中设置主题ZSH_THEME=“powerlevel10k/powerlevel10k”*** 安装插件 zsh-completions 1 git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions zsh-autosuggestions 1 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions zsh-syntax-highlighting 1 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 加入到***.zshrc***中 1 2 3 4 5 6 plugins=( git zsh-completions zsh-autosuggestions zsh-syntax-highlighting ) 全部完整的的***....

November 24, 2024 · 2 min · 359 words · Yuu