安装zsh
brew install zsh
配置zsh
nano ~/.zshrc
复制以下内容到.zshrc
1 | # 配置kubectl添加补全 |
为root用户修改默认shell为zsh
chsh -s /bin/zsh root
为当前用户修改默认shell为zsh
chsh -s /bin/zsh
or
chsh -s `which zsh`
恢复命令
chsh -s /bin/bash
电影|阅读|记录
brew install zsh
nano ~/.zshrc
复制以下内容到.zshrc
1 | # 配置kubectl添加补全 |
chsh -s /bin/zsh root
chsh -s /bin/zsh
chsh -s `which zsh`
chsh -s /bin/bash