# SetupScript
# 快速在一台新的Mac上面安裝需要的工具
# 第一步: 先裝好 homebrew
- 已包在
make all
之內, 下make base
就裝拉
#!/bin/sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1
2
2
# 第二步: 該裝的都在Makefile內, 自行增減
#!/usr/bin/make -f
.PHONY : all base sublime travis kraken docker composer wget slack postman fork alias gcloud terra iterm vagrant virtualbox sequelpro zeplin copyq npm
all: base travis kraken docker composer sublime wget slack postman fork alias gcloud terra iterm vagrant virtualbox sequelpro zeplin copyq npm
@echo ">>Now building Everything"
## Homebrew requires root account
base:
@echo ">>> Install Homebrew......"
./base.sh
## Need this to get files
wget:
@echo ">>> getting wget"
brew install wget
## TBD: this one is complicated
powerline:
@echo ">>> Install Powerline"
./powerline.sh
sublime:
@echo ">>> Install Sublime Text 3 && Setup shortcut [subl]"
brew cask install sublime-text &&
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
## Travis CI the CI/CD tool
travis:
@echo ">>> Install travis Via Homebrew"
brew install travis
## GitKraken for Git Version Control
kraken:
@echo ">>> Install gitkraken Via Homebrew"
brew cask install gitkraken
## Docker
docker:
@echo ">>> Install Docker Env"
brew update && brew cask install docker
## docker-compose
docker-compose:
@echo ">>> Install Docker Compose"
brew update && brew install docker-compose
## Composer
composer:
@echo ">>> Install composer"
./getComposer.sh && mv composer.phar /usr/local/bin/composer
## Slack
slack:
@echo ">>> Install Slack"
brew cask install slack
## Postman the Api tool
postman:
@echo ">>> Install Postman the Api tool"
brew cask install postman
fork:
@echo ">>> Install Fork the git GUI client"
brew cask install fork
## Clean up Homebrew cask
clean-up:
@echo ">>> Clean Up Homebrew Cask"
brew cleanup
## Copy Local Alias Over
alias:
@echo ">>> Copy Alias File"
cp .bash_aliases ~/ && source ~/.bash_aliases
## Install Google Cloud SDK
gcloud:
@echo ">>> Install Google Cloud SDK"
brew update && brew cask install google-cloud-sdk
## Terraform
terra:
@echo ">>> Install Terraform"
brew install terraform
## iTerm
iterm:
@echo ">>> Install Iterm2"
brew update && brew cask install iterm2
## Virtualbox
virtualbox:
@echo ">>> Install Virtualbox"
brew update && brew cask install virtualbox
## Vagrant
vagrant:
@echo ">>> Install Vagrant"
brew update && brew cask install vagrant
## SequelPro
sequelpro:
@echo ">>> Install Sequel Pro"
brew update && brew cask install sequel-pro
## Zeplin - the tool for designers
zeplin:
@echo ">>> Install Zeplin"
brew update && brew cask install zeplin
## ClipBoard stuff
copyq:
@echo ">>> Install CopyQ"
brew update && brew cask install copyq
## Front-end stuff
npm:
@echo ">> Install NPM"
brew update && brew install npm && npm install gulp
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118