-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·56 lines (43 loc) · 1.42 KB
/
install
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
#!/usr/bin/env ruby
require('yaml')
require_relative('lib/asdf')
require_relative('lib/brew')
require_relative('lib/config')
require_relative('lib/macos')
require_relative('lib/oh_my_zsh')
require_relative('lib/rvm')
require_relative('lib/string')
require_relative('lib/symbolic_links')
puts "\n« Setting macOS Defaults »".bold.blue
macos_config = Config.load('macos')
macos = MacOS.new(macos_config, verbose: true)
macos.defaults!
puts "\n« Installing homebrew »".bold.blue
homebrew_config = Config.load('homebrew')
brew = Brew.new(homebrew_config, force: true, verbose: true)
brew.install!
puts "\n« Tapping homebrew casks »".bold.blue
brew.tap_casks!
puts "\n« Installing apps via homebrew »".bold.blue
brew.update!
brew.install_apps!
puts "\n« Cleaning up after homebrew »".bold.blue
brew.cleanup!
puts "\n« Installing oh-my-zsh »".bold.blue
omz = OhMyZSH.new(verbose: true)
omz.install!
puts "\n« Creating symbolic links »".bold.blue
symlinks_config = Config.load('symlinks')
links = SymbolicLinks.new(symlinks_config, force: true, verbose: true)
links.create!
puts "\n« Installing App Store applications »".bold.blue
macos.install_apps!
puts "\n« Installing asdf »".bold.blue
asdf_config = Config.load('asdf')
asdf = ASDF.new(asdf_config, verbose: true)
asdf.install!
puts "\n« Installing asdf plugins »".bold.blue
asdf.plugins!
puts "\n« Installing rvm »".bold.blue
rvm = RVM.new(verbose: true)
rvm.install!