We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1af72 commit a6d3a3fCopy full SHA for a6d3a3f
1 file changed
codes/deploy/tool/zsh/install-zsh.sh
@@ -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