备忘:oh my zsh 的安装、更新、删除
查看系统当前 shell
$ cat /etc/shells
安装 oh my zsh
$ sudo apt-get install zsh git wget
$ wget -no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
$ chsh -s /bin/zsh
$ reset
配置 zsh
配置文件是 /root/.zshrc
,根据需要修改即可。
oh my zsh 的自动更新提示误触关掉了?
$ upgrade_oh_my_zsh
想换 oh my fish?
$ uninstall_oh_my_zsh
$ brew install fish
$ curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.sh | sh
注意到 /root/.zshrc 目录仍然在,还能换回来。