安装homebrew
安装zsh
Mac os:
Mac 已经自带可以查看
cat /etc/shells
ubuntu:
Linux没有安装zsh
sudo apt-get update
sudo apt-get install git
sudo apt-get install zsh
安装oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
备份配置文件
输入命令:
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
查看当前默认shell
echo $SHELL
liu@liu-VirtualBox:~$ echo $SHELL
/bin/bash
更改默认shell
sudo chsh -s /bin/zsh (linux 需要重启后才能生效)