-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
61 lines (55 loc) · 1.14 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
require "pathname"
require_relative "setup"
LINKABLES = %w[
.ackrc
.agignore
.aprc
.bashrc
.bundle/config
.fzf.bash
.fzf.zsh
.gemrc
.git_template
.gitconfig
.gitignore_global
.gvimrc
.hgrc
.irbrc
.profile
.pryrc
.psqlrc
.railsrc
.rbenv/default-gems
.rdbgrc
.ripgreprc
.rspec
.screenrc
.ssh/allowed_signers
.ssh/common_config
.vim
.vimrc
.zprofile
.zsh
.zshenv
.zshrc
Brewfile
].freeze
desc "Symlink dotfiles into system-standard locations."
task :install do
Setup.install(linkables: LINKABLES,
home_dir: Pathname(ENV.fetch("HOME")),
working_dir: Pathname.pwd)
end
task :uninstall do
Setup.uninstall(linkables: LINKABLES,
home_dir: Pathname(ENV.fetch("HOME")))
end
task default: "install"
namespace :install do
desc "Install dotfiles, and tweak a few things for Windows."
task windows: :install do
abort "This is for Windows, yo!" unless RUBY_PLATFORM.downcase.include?("mswin")
system "git config --global core.autocrlf true"
system 'git config --global gui.fontdiff "-family Consolas -size 12 -weight normal -slant roman -underline 0 -overstrike 0"'
end
end