问题
- wsl2中安装zsh+ohmyzsh+openlevel10k,突然提示: - zsh: corrupt history file /root/.zsh_history
- .p10k.zsh每次启动zsh都会弹一堆警告- typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
解决
- $HOME目录下依次执行: - cp .zsh_history zsh_history rm -f .zsh_history strings zsh_history .zsh_history
- 编辑$HOME目录下的 - .p10k.zsh配置文件,在末尾加上一句:- typeset -g POWERLEVEL9K_INSTANT_PROMPT=off