先配置一下zsh oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
vim ~/.zshrc
# Path to your oh-my-zsh installation. export ZSH="/home/ubuntu/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="robbyrussell" #在此处改主题
echo $SHELL #查看当前的默认shell SHELL="/bin/zsh" #这就可以了。很暴力。不过得去看好zsh的位置,弄错了可能要gg