/
.brew
executable file
·136 lines (104 loc) · 2.42 KB
/
.brew
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/usr/bin/env bash
# Link Homebrew casks in `/Applications` rather than `~/Applications`
export HOMEBREW_CASK_OPTS='--appdir=/Applications'
echo "--> Make sure we're using the latest Homebrew"
brew update
echo '--> Upgrade any already-installed formulae'
brew upgrade
echo '--> Install Homebrew-Cask'
brew tap caskroom/cask
echo '--> Install libraries and applications'
# terminal
brew cask install iterm2
brew install bash
brew install bat
brew install ffmpeg
brew install fzf
brew install rs/tap/jaggr
brew install rs/tap/jplot
brew install oath-toolkit
brew install prettyping
brew install ncdu
brew install tmux
brew install reattach-to-user-namespace
brew install vim
brew install zsh
brew tap greymd/tools
brew install tmux-xpanes
# browser
brew cask install google-chrome
# openssl
brew install openssl
brew link openssl --force
# python
brew install python --with-brewed-openssl
brew install python3 --with-brewed-openssl
# fonts
brew tap homebrew/cask-fonts
brew cask install font-allerta-stencil
brew cask install font-roboto-slab
PIPS=(
flake8
httpie
pylint
virtualenv
)
"$(brew --prefix)/bin/pip" install --upgrade pip
for pip in "${PIPS[@]}"; do
"$(brew --prefix)/bin/pip" list -l | grep "$pip" &>/dev/null || "$(brew --prefix)/bin/pip" install "$pip"
done
# ruby
mkdir -p ~/.rubies
brew install ruby-install
brew install chruby
RUBIES=(
2.4.2
)
for ruby in "${RUBIES[@]}"; do
"$(brew --prefix)/bin/ruby-install" --no-reinstall --rubies-dir ~/.rubies ruby "$ruby"
done
echo "${RUBIES[@]:(-1)}" > ~/.ruby-version
GEMS=(
bundler
dotenv
)
# shellcheck source=/dev/null
source "$(brew --prefix)/share/chruby/chruby.sh"
chruby "$(cat ~/.ruby-version)"
for gem in "${GEMS[@]}"; do
gem list -i "${gem}" &>/dev/null || gem install "${gem}"
done
# node.js
brew install nodejs
# go
brew install go
# devops
brew cask install virtualbox
brew cask install vagrant
brew cask install docker
# image/video
brew cask install vlc
# tools
brew cask install slack
brew cask install tableplus
# misc
brew cask install gpgtools
brew install autoenv
brew install awscli
brew install curl
brew install fd
brew install findutils --with-default-names
brew install git
brew install graphviz
brew install htop-osx
brew install jq
brew install tcpdump
brew install tig
brew install tree
brew install wget
brew install zsh-syntax-highlighting
echo '--> Link homebrew apps'
brew linkapps
echo '--> Cleanup !'
brew cask cleanup
brew cleanup