Centos7 安装 oh-my-zsh
Centos7安装oh-my-zsh
安装命令
#安装zsh
yum install -y zsh
#依赖git,需要安装git
yum install -y git
#通过curl安装
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#通过wget安装
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
查看命令
#查看终端命令列表
cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/bin/zsh
zsh --version
切换命令
chsh -s /bin/zsh