ZSH配置速通

前言 我发现最近老是配置,而且配置过很多次了@(喷),抄一份下来省的下次还要找,也欢迎大家参考@(吐舌) zsh && oh-my-zsh 安装  sudo apt-get install zsh  sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-m

前言

我发现最近老是配置,而且配置过很多次了@(喷),抄一份下来省的下次还要找,也欢迎大家参考@(吐舌)

zsh && oh-my-zsh 安装

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

插件

zsh-sytnax-highlighting

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

zsh-autosuggestions

 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

github打不开也可以用gitee的镜像

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

打开 .zshrc配置插件

 vim ~/.zshrc
 # plugins=(git zsh-autosuggestions zsh-syntax-highlighting) 
 source ~/.zshrc

主题

Powerlevel10K

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

打开 .zshrc配置主题

 vim ~/.zshrc
 ​
 # ZSH_THEME="powerlevel10k/powerlevel10k"
 source ~/.zshrc #source完会自动配置

效果

平台是WIN11 WSL UBUNTU20.04 壁纸在 WALLPAPER ENGINE

2022_12.png

Comment