From 001f5a1e16216f502c5accc3277566107ea80bdb Mon Sep 17 00:00:00 2001 From: Laily Date: Mon, 14 Jan 2019 10:22:57 +0800 Subject: [PATCH 1/3] feat: del vi-mode in zsh --- .zshrc | 1 - 1 file changed, 1 deletion(-) diff --git a/.zshrc b/.zshrc index 72b7312..b18fa8e 100644 --- a/.zshrc +++ b/.zshrc @@ -63,7 +63,6 @@ plugins=( z jsontools extract - vi-mode ) source $ZSH/oh-my-zsh.sh From 7ea44f08d6d5879b487cf3b2765740a3ad9535c8 Mon Sep 17 00:00:00 2001 From: Laily Date: Tue, 15 Jan 2019 14:06:57 +0800 Subject: [PATCH 2/3] feat: add init.sh --- .SpaceVim.d/init.toml | 4 ++++ init.sh | 9 +++++++++ initzsh.sh | 3 --- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 init.sh delete mode 100644 initzsh.sh diff --git a/.SpaceVim.d/init.toml b/.SpaceVim.d/init.toml index 9367e20..7dd18c7 100644 --- a/.SpaceVim.d/init.toml +++ b/.SpaceVim.d/init.toml @@ -61,6 +61,9 @@ name = "lang#html" [[layers]] name = "lang#typescript" +[[layers]] +name = "lang/vim" + [[layers]] name = "fzf" @@ -71,3 +74,4 @@ name = "VersionControl" name = "tmux" + diff --git a/init.sh b/init.sh new file mode 100644 index 0000000..ecc435e --- /dev/null +++ b/init.sh @@ -0,0 +1,9 @@ +#!bin/sh +git clone https://github.com/Laily123/.dotfile.git ~/.dotfile +sudo yum update && sudo yum -y install zsh +sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" +ln -sf ~/.dotfile/.zshrc ~/ +ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/ +ln -sf ~/.dotfile/.tmux.conf ~/ +ln -sf ~/.dotfile/.gitconfig ~/.gitconfig + diff --git a/initzsh.sh b/initzsh.sh deleted file mode 100644 index af363b6..0000000 --- a/initzsh.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -ln -sf ~/.dotfile/.zshrc ~/ -ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/ From 0d05a6621582db00e8bdc358e8b15eda663225d6 Mon Sep 17 00:00:00 2001 From: Laily Date: Tue, 15 Jan 2019 14:09:11 +0800 Subject: [PATCH 3/3] fix: modify readme --- README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c826a03..a708646 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ ### 使用 ```shell -# 切换到 home 目录 -cd ~ git clone https://github.com/Laily123/.dotfile.git ~/.dotfile ``` - ### zsh 安装 安装 zsh -`https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH` -macOS ```shell +https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH +# macOS brew install zsh zsh-completions +# CentOS +sudo yum -y install zsh +# Ubuntu +apt install zsh ``` 安装 oh-my-zsh @@ -22,6 +23,7 @@ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/to ln -sf ~/.dotfile/.zshrc ~/ ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/ ln -sf ~/.dotfile/.tmux.conf ~/ +ln -sf ~/.dotfile/.gitconfig ~/.gitconfig ``` ### spacevim 安装 @@ -30,8 +32,3 @@ ln -sf ~/.dotfile/.tmux.conf ~/ 初始化配置 `ln -sf ~/.dotfile/.SpaceVim.d ~/` -### git config -```shell -ln -sf ~/.dotfile/.gitconfig ~/.gitconfig -``` -