zsh终端
oh my zsh
- linux下默认的是bash,切换为zsh终端命令为zsh,切换为bash命令为bash.
- chsh -s bash默认为bash,chsh -s zsh默认为zsh.
配置oh my zsh
- 查看当前shell,echo $SHELL
- 安装oh my zsh,oh my zsh link
- 修改主题,vim ~/.zshrc
- 将ZSH_THEME改成ys,ZSH_THEME=“ys”
- 更新配置,source ~/ .zshrc
- 补全插件:link
- 将插件放在oh my zsh 目录的插件库下,oh-my-zsh/plugins/incr
- 在~/ .zshrc文件末尾加上,source ~/.oh-my-zsh/plugins/incr/incr* .zsh
- source ~/.zshrc
- 删除 ~/ .zcompdump*,exec zsh