ubuntu 国内环境安装ohmyzsh

使用国内镜像加速安装 Oh My Zsh​

sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

配置默认shell为zsh(重启shell生效)

chsh -s $(which zsh)

安装插件

  1. zsh-autosuggestions
git clone https://gitee.com/imirror/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

2.​zsh-syntax-highlighting

git clone https://gitee.com/imirror/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

3.autojump

sudo apt install autojump
  1. 配置 .zshrc
plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  autojump
)
posted @ 2025-06-27 10:14  Greg_LYU  阅读(289)  评论(0)    收藏  举报