记录下如何配置我的终端:
顺便推荐下我的vim配置:https://github.com/devilyouwei/NVimmer 配上漂亮的vim效果更佳
安装ZSH和oh-my-zsh
安装zsh
sudo apt install zsh
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
切换默认shell为zsh
chsh -s /bin/zsh
安装powerlevel10k
通过已经安装的oh-my-zsh安装powerlevel10k主题
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
修改~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
打开zsh
这时候打开zsh会有一个问答环节,根据自己需求回答完生成zsh的UI
注销
最后注销下用户登录,以后打开terminal看到就是如下画面: