zsh settings
terminal settings
最简单的办法当然是直接安装zsh + ohmyzsh。虽然这样在插件较多的时候会牺牲一点启动的速度.
安装zsh + ohmyzsh
1
2
3
sudo zypper install zsh
# sudo apt install zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
国内也可以用ohmyzsh提供的其余方法
sh -c "$(curl -fsSL https://install.ohmyz.sh/)"
然后安装插件,我这边在wsl里,就需要一个自动补全就够了
1
2
3
4
5
6
7
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
vim .zshrc
# plugins=(
# # other plugins...
# zsh-autosuggestions
# )
遇到一些很傻逼的问题
如果遇到一些比较傻逼的问题的话,首先先进.oh-my-zsh里去,把里面修改过的文件restore了,然后source一把zshrc
还不行的话就需要开debug mode复现一下了,omz开debug比较简单,看这个页面就可以了
This post is licensed under CC BY 4.0 by the author.