-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
109 lines (92 loc) · 1.77 KB
/
init.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
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
#!/bin/bash
echo "###############################################"
echo "APPS INSTALL START!"
echo "###############################################"
echo "installing homebrew..."
which brew >/dev/null 2>&1 || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "run brew doctor..."
which brew >/dev/null 2>&1 && brew doctor
echo "run brew update..."
which brew >/dev/null 2>&1 && brew update
echo "ok. run brew upgrade..."
brew upgrade --all
formulas=(
git
wget
curl
tree
openssl
z
colordiff
cask
ansible
peco
hub
tig
node
python3
go
mysql
postgresql
httpd22
ricty
composer
markdown
starship
exa
bat
fd
ripgrep
ghq
hlb
lsd
)
"brew tap..."
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew tap homebrew/apache
brew tap sanemat/font
brew tap motemen/ghq
brew tap mpppk/mpppk
brew tap homebrew/cask-fonts
echo "start brew install apps..."
for formula in "${formulas[@]}"; do
brew install $formula || brew upgrade $formula
done
casks=(
dropbox
evernote
adobe-acrobat-reader
google-chrome
google-japanese-ime
slack
alfred
iterm2
virtualbox
vagrant
vagrant-manager
docker
visual-studio-code
clipy
day-o
sequel-pro
sourcetree
postman
spectacle
font-hack-nerd-font
)
echo "start brew cask install apps..."
for cask in "${casks[@]}"; do
brew install --cask $cask
done
brew cleanup
brew cask cleanup
chsh -s $(which zsh)
echo 'default shell zsh changed...'
cat << END
**************************************************
APPS INSTALLED bye.
**************************************************
END