-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
50 lines (38 loc) · 980 Bytes
/
Rakefile
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
#require 'rake/packagetask'
DOTFILES = %w[
.ctags
.gemrc
.gitconfig
.gitignore
.gvimrc
.vimrc
.zshrc
.jshintrc
.npmrc
]
task :default => [:ln_dotfiles, :vim_config, :install_zsh]
desc "ln all dotfiles"
task :ln_dotfiles do
DOTFILES.each do |file|
puts "--- ln #{file} to $Home ---"
system "ln -f #{file} ~/"
end
end
desc "vim: install vim plugins and config"
task :vim_config do
puts "--- git clone vundle ---"
system 'git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle'
puts "--- ln .vimrc .gvimrc ---"
system 'ln -f .vimrc .gvimrc ~/'
puts "--- install plugins ---"
system 'vim +BundleInstall +qa'
end
desc "zsh: install oh-my-zsh"
task :install_zsh do
puts "--- git clone oh-my-zsh ---"
system 'git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh'
puts "--- cp .zshrc ---"
system 'ln -f .zshrc ~/.zshrc'
puts "--- Set zsh as your default shell ---"
system 'chsh -s /bin/zsh'
end