安装ubuntu20.04
设置Ubuntu
cat /etc/apt/sources.list
sed -i "s@http://archive.ubuntu.com@https://mirrors.aliyun.com@g" /etc/apt/sources.list
sudo apt-get update
sudo apt update
sudo apt install zsh
chsh -s /bin/zsh
zsh --version
sudo git clone https://gitee.com/mirrors/oh-my-zsh.git
sh ~/oh-my-zsh/tools/install.sh
sudo git clone https://gitee.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
sudo git clone https://gitee.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- zsh-syntax-highlighting插件
sudo git clone https://gitee.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
vim ~/.zshrc
修改
ZSH_THEME="powerlevel10k/powerlevel10k"
source ~/.zshrc
开始设置
p10k configure
下载字体补缺无法显示的p10k nerd fonts
推荐JetBrains
https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
成功
|