Oh My Zsh 安装
Oh My Zsh 快速安装
安装 zsh
1 | sudo apt-get install zsh |
将 shell 改为 zsh
1 | chsh -s /bin/zsh |
接下来下载 oh my zsh
1 | git clone https://gitee.com/mirrors/oh-my-zsh.git |
按照 README.md,手动安装。安装好了,重新打开终端。
推荐两个插件
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
找到 plugins=(git),改为
1 | plugins=(git zsh-autosuggestions zsh-syntax-highlighting) |
保存后执行
1 | source ~/.zshrc |
主题的安装
1 | git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k |
找到 ZSH_THEME,改为
1 | ZSH_THEME="powerlevel10k/powerlevel10k" |
Oh My Zsh 安装
https://blog.josway.cc/2022/04/25/yuque/Oh My Zsh 安装/