Skip to content

Commit a6d3a3f

Browse files
committed
🔖 zsh/oh-my-zsh 安装脚本
1 parent 9f1af72 commit a6d3a3f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
###################################################################################
4+
# 安装 zsh、oh-my-zsh 脚本
5+
# 适用于 Centos
6+
# Author: Zhang Peng
7+
###################################################################################
8+
9+
echo -e "\n>>>>>>>>> install zsh"
10+
11+
# 安装 zsh
12+
yum install -y zsh
13+
# 安装 oh-my-zsh
14+
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
15+
# 替换 oh-my-zsh 主题
16+
sed -i "s#^ZSH_THEME=.*#ZSH_THEME=\"ys\"#g" ~/.zshrc
17+
# 下载 incr.zsh 补全插件
18+
wget http://mimosa-pudica.net/src/incr-0.2.zsh
19+
cp incr-0.2.zsh ~/.oh-my-zsh/plugins/incr/
20+
echo "source ~/.oh-my-zsh/plugins/incr/incr*.zsh" >> ~/.zshrc
21+
22+
# 更新配置
23+
source ~/.zshrc

0 commit comments

Comments
 (0)