install oh my zsh on ubuntu 16.04

first,install zsh

#安装zsh
sudo apt-get install zsh
#是否安装成功
cat /etc/shells
#/bin/sh
#/bin/bash
#/bin/rbash
#/bin/dash
#/bin/zsh
#/usr/bin/zsh

#修改默认shell,需重启或注销
chsh -s /bin/zsh
#查看当前shell是不是zsh了(需要注销或者重启)
echo $SHELL
#/bin/zsh

install oh my zsh

官网:https://ohmyz.sh

#安装git
sudo apt-get install git
#安装oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#修改默认主题
vim ~/.zshrc
#生效
source ~/.zshrc
posted @ 2019-01-09 22:40  这谁顶着住啊  阅读(314)  评论(0编辑  收藏  举报