Ubuntu20.04安装oh-my-zsh
安装zsh
sudo apt-get update
sudo apt-get install zsh
cat /etc/shell
出现**/bin/zsh**即为安装成功
安装oh-my-zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
更改默认shell
chsh -s /bin/zsh
安装主题powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
配置zsh
sudo vim ~/.zshrc
没有vim用gedit
ZSH_THEME="powerlevel10k/powerlevel10k"
自动补全插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plugins=(git zsh-autosuggestions)