-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·77 lines (70 loc) · 2.14 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
function install_vim_config {
echo "Installing vim config.."
ln -s ~/dotfiles/vimrc ~/.vimrc
rm -rf ~/.vim
ln -s ~/dotfiles/vim ~/.vim
}
function install_git {
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/dotfiles/githelpers ~/.githelpers
}
function install_zsh {
ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/zprofile ~/.zprofile
ln -s ~/dotfiles/zsh_aliases ~/.zsh_aliases
ln -s ~/dotfiles/zsh_functions ~/.zsh_functions
}
function install_antigen {
curl -L git.io/antigen > $HOME/antigen.zsh
}
function install_vim_plugins {
mkdir -p ~/dotfiles/vim/bundle
cd ~/dotfiles/vim/bundle
git clone https://github.com/jiangmiao/auto-pairs
git clone https://github.com/jlanzarotta/bufexplorer.git
git clone https://github.com/itchyny/calendar.vim
git clone https://github.com/vim-scripts/mru.vim
git clone https://github.com/scrooloose/nerdtree
git clone https://github.com/scrooloose/nerdcommenter
git clone https://github.com/SirVer/ultisnips
git clone https://github.com/tpope/vim-surround
git clone https://github.com/maxbrunsfeld/vim-yankstack
git clone https://github.com/mikewest/vimroom
git clone https://github.com/guns/xterm-color-table.vim
git clone https://github.com/Xuyuanp/nerdtree-git-plugin.git
git clone https://github.com/prettier/vim-prettier.git
cd ~
}
function install_command_t {
#cd ~/dotfiles/vim/bundle
#git clone https://github.com/wincent/command-t
cd command-t/ruby/command-t/ext/command-t
ruby extconf.rb
make
cd ~
}
function install_vim_syntax {
echo "Installing vim syntax.."
cd ~/dotfiles/vim/bundle
git clone https://github.com/fatih/vim-go
git clone https://github.com/rhysd/vim-crystal
git clone https://github.com/rust-lang/rust.vim
git clone https://github.com/keith/swift.vim
git clone https://github.com/pangloss/vim-javascript
git clone https://github.com/mxw/vim-jsx
cd ~
}
function install_powerline_fonts {
echo "Installing powerline fonts.."
git clone https://github.com/powerline/fonts
cd fonts/
./install.sh
}
install_antigen
install_git
install_zsh
install_vim_config
install_vim_plugins
install_command_t
install_vim_syntax