Merge branch 'master' of github.com:Laily123/dotfile

This commit is contained in:
2019-01-16 23:57:00 +08:00
5 changed files with 20 additions and 14 deletions
+4
View File
@@ -61,6 +61,9 @@ name = "lang#html"
[[layers]] [[layers]]
name = "lang#typescript" name = "lang#typescript"
[[layers]]
name = "lang/vim"
[[layers]] [[layers]]
name = "fzf" name = "fzf"
@@ -71,3 +74,4 @@ name = "VersionControl"
name = "tmux" name = "tmux"
-1
View File
@@ -63,7 +63,6 @@ plugins=(
z z
jsontools jsontools
extract extract
vi-mode
) )
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
+7 -10
View File
@@ -1,16 +1,17 @@
### 使用 ### 使用
```shell ```shell
# 切换到 home 目录
cd ~
git clone https://github.com/Laily123/.dotfile.git ~/.dotfile git clone https://github.com/Laily123/.dotfile.git ~/.dotfile
``` ```
### zsh 安装 ### zsh 安装
安装 zsh 安装 zsh
`https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH`
macOS
```shell ```shell
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
# macOS
brew install zsh zsh-completions brew install zsh zsh-completions
# CentOS
sudo yum -y install zsh
# Ubuntu
apt install zsh
``` ```
安装 oh-my-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/.zshrc ~/
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/ ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
ln -sf ~/.dotfile/.tmux.conf ~/ ln -sf ~/.dotfile/.tmux.conf ~/
ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
``` ```
### spacevim 安装 ### spacevim 安装
@@ -30,8 +32,3 @@ ln -sf ~/.dotfile/.tmux.conf ~/
初始化配置 初始化配置
`ln -sf ~/.dotfile/.SpaceVim.d ~/` `ln -sf ~/.dotfile/.SpaceVim.d ~/`
### git config
```shell
ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
```
+9
View File
@@ -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
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
ln -sf ~/.dotfile/.zshrc ~/
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/