必备软件
yum install -y net-tools
yum install -y wget
yum install -y vim-enhanced
yum install -y sysstat #sar工具
yum install -y psmisc #pstree工具,killall杀进程的
yum install -y iptraf-ng #流量监控
yum install -y bash-completion #systemctl命令补全
yum install -y gcc gcc-c++ #任何编译安装必备
yum install -y git #装git
yum install -y telnet
yum install -y telnet-server
yum install -y java (openjdk)
关闭centos7默认的firewall防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
安装oh-my-zsh
-
安装zsh包
yum -y install zsh -
切换默认shell为zsh
chsh -s /bin/zsh
(重启或者关闭当前终端)
- 安装on my zsh
-
curl 方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" -
wget 方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) -O -)"
-
安装插件
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
git clone git://github.com/joelthelion/autojump.git -
查看oh my zsh主题
ls ~/.oh-my-zsh/themes -
修改主题
vim ~/.zshrc (默认的主题是ZSH_THEME="robbyrussell")
1.ZSH_THEME="ys"
2.同时修改plugins=(git git-flow grails rvm history-substring-search github gradle svn node npm zsh-syntax-highlighting sublime autojump) -
使配置立即生效
$ source ~/.zshrc
后续还在整理中
thanks
网友评论