acongm
软件推荐

zsh

oh-my-zsh

用于自定义 zsh 的配置

  1. 主题配置
  2. 插件安装

安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Github zsh 插件

zsh 插件

autojump

用于常用目录间的快速跳转(通过维护命令行中最常用的目录的数据库来工作)

安装

# 推荐
brew install autojump

# OR
git clone --depth=1 git://github.com/joelthelion/autojump.git

cd autojump

./install.py or ./uninstall.py

Github

z

autojump 功能一致,是 oh-my-zsh 内置插件

# 在 ~/.zshrc 中配置
plugins=(其他插件 z)

# 使配置生效
source ~/.zshrc

Github

fast-syntax-highlighting

终端语法高亮显示

安装

# clone
git clone --depth=1 https://github.com/zdharma/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting

# 在 ~/.zshrc 中配置(在 plugins 的最后面加上 fast-syntax-highlighting)
plugins=(其他插件 fast-syntax-highlighting)

# 使配置生效
source ~/.zshrc

Github

zsh-autosuggestions

根据您的历史记录和完成情况建议您键入的命令

安装

# clone
git clone --depth=1 git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# 在 ~/.zshrc 中配置
plugins=(其他插件 zsh-syntax-highlighting)

# 使配置生效
source ~/.zshrc

Github

zsh 主题

powerlevel10k

安装

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

# 在 ~/.zshrc 中配置
ZSH_THEME="powerlevel10k/powerlevel10k"

# 使配置生效
source ~/.zshrc

配置

使用 iTerm2 可自动安装所需字体

p10k configure

修复 vscode 终端图标乱码,修改 terminal.integrated.fontFamily"MesloLGS NF"

"terminal.integrated.fontFamily": "MesloLGS NF",

更新

git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull

Github

On this page