-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.sh
113 lines (100 loc) · 1.83 KB
/
bootstrap.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
110
111
112
#!/bin/sh
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
chsh -s $(which zsh)
# Update homebrew recipes
# FAQ1:sudo chown -R $(whoami):admin /usr/local/Homebrew/.git
echo "updating brew..."
#brew update
echo "before install with brew, you can refer to Brewfile"
#taps
taps=(
thoughtbot/formulae
)
echo "installing binaries..."
echo "browse from http://braumeister.org"
brew tap ${taps[@]}
brew cleanup
binaries=(
# cntlm
# htop
rcm
# mackup
macvim
# "wget --with-iri"
tree
socat
node
nmap
# e2fsprogs
# neofetch
# "reattach-to-user-namespace --with-wrap-pbcopy-and-pbpaste"
zsh
zsh-completions
tmux
# graphviz
# bazel
cmake
clang-format
telnet
)
echo "installing binaries..."
brew install ${binaries[@]}
brew cleanup
# Apps
apps=(
appcleaner
#evernote
#google-chrome
#qq
qqmusic
#neteasemusic
#skitch
#vlc
#mplayerx
keycastr
#beyond-compare
#aliwangwang
#calibre
#coderunner
#filezilla
#geektool
gitup
#hex-fiend
#keepassx
#nutstore
#shadowsocksx
#staruml
#torbrowser
#virtualbox
vnc-viewer
#baidunetdisk
#postman
#wireshark
#dukto
#mysqlworkbench
#pycharm-ce
#visual-studio-code
#hammerspoon
#downie
#sourcetree
#spectacle
#amethyst
#android-platform-tools
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
echo "browse https://caskroom.github.io/search"
brew cask install ${apps[@]}
brew cask install caskroom/versions/java8
echo "installing dotfiles..."
export RCRC="$HOME/dotfiles/rcrc"
rcup
echo "installing dotfiles-oschina..."
export RCRC="$HOME/dotfiles-oschina/rcrc"
rcup