yum -y install zsh # 查看是否安装完成 cat /etc/shells /bin/sh /bin/bash /sbin/nologin /bin/dash /bin/tcsh /bin/csh /bin/zsh # 替换默认的 /bin/bash chsh -s /bin/zsh changing shell for root. shell not changed. # 重启一下 reboot
# 查看现在的shell echo $shell /bin/zsh
# 安装git yum -y install git #克隆oh-my-zsh git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh #复制zshrc cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
curl -l https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
不管使用手动或者
自动安装,完成后都需要重启。oh-my-zsh才能生效。
挑选你喜欢的主题:https://github.com/robbyrussell/oh-my-zsh/wiki/themes
vim ~/.zshrc
zsh_theme=bira
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论