forked from tornad/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
512 lines (403 loc) · 12.6 KB
/
Makefile
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
COMPUTER_NAME := 'MBA'
usage:
@echo brew - Install brew and brew-cask
@echo vagrant - Install vagrant, packer and plugins
sshconfig:
cat ~/.ssh/config.d/* > ~/.ssh/config
brew: /usr/local/bin/brew
/usr/local/bin/brew:
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install > /tmp/brew-installer.sh
chmod +x /tmp/brew-installer.sh
/tmp/brew-installer.sh
brew install caskroom/cask/brew-cask
brew tap gapple/services
brew tap caskroom/fonts
cmake: brew /usr/local/bin/cmake
/usr/local/bin/cmake:
brew install cmake
ip: iproute2mac
iproute2mac: brew /usr/local/bin/ip
/usr/local/bin/ip:
brew install iproute2mac
iterm2: brew /Applications/iTerm.app
/Applications/iTerm.app:
brew cask install iterm2
wireshark: /usr/local/Caskroom/wireshark-chmodbpf/chmodbpf_only.xml
/usr/local/Caskroom/wireshark-chmodbpf/chmodbpf_only.xml:
brew cask install wireshark-chmodbpf
vscode: visual-studio-code
visual-studio-code: /usr/local/bin/code
/usr/local/bin/code:
brew cask install visual-studio-code
font-sourcecode: ~/Library/Fonts/Sauce\ Code\ Powerline\ Light.otf
~/Library/Fonts/Sauce\ Code\ Powerline\ Light.otf:
brew cask install font-source-code-pro-for-powerline
font-anonymous: ~/Library/Fonts/Anonymice\ Powerline.ttf
~/Library/Fonts/Anonymice\ Powerline.ttf:
brew cask install font-anonymous-pro-for-powerline
diff-so-fancy: /usr/local/Cellar/diff-so-fancy/0.11.2/bin/diff-so-fancy
/usr/local/Cellar/diff-so-fancy/0.11.2/bin/diff-so-fancy:
brew install diff-so-fancy
mancy: ~/Applications/Mancy.app
~/Applications/Mancy.app:
brew cask install mancy
soulseek: ~/Applications/SoulseekQt.app
~/Applications/SoulseekQt.app:
brew cask install soulseek
imagemagick: brew /usr/local/bin/jpegtran
/usr/local/bin/jpegtran:
brew install imagemagick
git-config: ~/.gitconfig
~/.gitconfig:
ln -s ~/dotfiles/gitconfig ~/.gitconfig
gpg: brew /usr/local/bin/gpg-agent /usr/local/bin/gpg /usr/local/bin/pinentry-mac
/usr/local/bin/gpg:
brew install gpg
/usr/local/bin/gpg-agent:
brew install gpg-agent
/usr/local/bin/pinentry-mac:
brew install pinentry-mac
gpg-config:
sed -i .bck 's/^# use-agent/use-agent/' ~/.gnupg/gpg.conf
echo 'use-standard-socket' > ~/.gnupg/gpg-agent.conf
echo 'pinentry-program /usr/local/bin/pinentry-mac' > ~/.gnupg/gpg-agent.conf
ghi: brew /usr/local/bin/ghi
/usr/local/bin/ghi:
brew install ghi
htop: brew /usr/local/Cellar/htop/2.2.0/bin/htop
/usr/local/Cellar/htop/2.2.0/bin/htop:
brew install cask htop
youtube-dl: brew /usr/local/bin/youtube-dl
/usr/local/bin/youtube-dl:
brew install youtube-dl
zshrc-config: ~/.zshrc
~/.zshrc:
ln -s ~/dotfiles/zsh/zshrc $@
oh-my-zsh: ~/.oh-my-zsh
~/.oh-my-zsh:
/usr/bin/curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh > /tmp/oh-my-zsh-installer.sh
chmod +x /tmp/oh-my-zsh-installer.sh
/tmp/oh-my-zsh-installer.sh
watch: brew /usr/local/bin/watch
/usr/local/bin/watch:
brew install watch
mtr: brew /usr/local/bin/mtr
/usr/local/bin/mtr:
brew install mtr
terraform:
brew install terraform
travis:
gem install travis
lftp: brew /usr/local/bin/lftp
/usr/local/bin/lftp:
brew install lftp
shiftit: brew /usr/local/bin/shiftit
/usr/local/bin/shiftit:
brew install Caskroom/cask/shiftit
scw: brew /usr/local/bin/scw
/usr/local/bin/scw:
brew tap scaleway/scaleway
brew install scaleway/scaleway/scw --HEAD
skype: brew /opt/homebrew-cask/Caskroom/skype/latest/Skype.app
/opt/homebrew-cask/Caskroom/skype/latest/Skype.app:
brew cask install skype
vlc: brew ~/Applications/VLC.app
/Applications/VLC.app:
brew cask install vlc
google-chrome: brew ~/Applications/Google Chrome.app
~/Applications/Google Chrome.app:
brew cask install google-chrome
sequel-pro: brew /opt/homebrew-cask/Caskroom/sequel-pro/latest/sequel-pro.app
/opt/homebrew-cask/Caskroom/sequel-pro/latest/sequel-pro.app:
brew cask install sequel-pro
keepassx: brew /opt/homebrew-cask/Caskroom/keepassx/latest/keepassx.app
/opt/homebrew-cask/Caskroom/keepassx/latest/keepassx.app:
brew cask install keepassx
dropbox: brew /opt/homebrew-cask/Caskroom/dropbox/latest/dropbox.app
/opt/homebrew-cask/Caskroom/dropbox/latest/dropbox.app:
brew cask install dropbox
virtualbox: brew /usr/local/bin/VBoxHeadless
/usr/local/bin/VBoxHeadless:
brew cask install virtualbox
packer: brew /usr/local/bin/packer
/usr/local/bin/packer:
brew cask install homebrew/completions/packer-completion
java: brew
brew cask install java
slack: brew $(HOME)/Applications/Slack.app
$(HOME)/Applications/Slack.app:
brew cask install slack
cloc: brew
brew install cloc
insomnia:
brew cask install insomnia
jq: brew /usr/local/bin/jq
/usr/local/bin/jq:
brew install jq
vagrant: brew virtualbox ansible /usr/local/bin/vagrant
/usr/local/bin/vagrant:
brew cask install vagrant
ansible: brew /usr/local/bin/ansible
/usr/local/bin/ansible:
brew install ansible
docker: brew /usr/local/bin/docker
/Applications/Docker.app:
brew cask install docker
highlight: brew /usr/local/bin/highlight
/usr/local/bin/highlight:
brew install highlight
ncdu: brew /usr/local/bin/ncdu
/usr/local/bin/ncdu:
brew install ncdu
tig: brew /usr/local/bin/tig
/usr/local/bin/tig:
brew install tig
vim: brew /usr/local/bin/vim
/usr/local/bin/vim:
brew install vim
neovim: brew /usr/local/bin/nvim
/usr/local/bin/nvim:
brew install neovim/neovim/neovim
~/.config:
mkdir $@
vim-config: ~/.vim ~/.vimrc ~/.config vim
~/.vim:
ln -s ~/dotfiles/vim ~/.vim
~/.vimrc:
ln -s ~/dotfiles/vim/.vimrc ~/.vimrc
#ln -s ~/.vim ~/.config/nvim
#ln -s ~/.vimrc ~/.config/nvim/init.vim
instant-markdown: /usr/local/bin/instant-markdown-d
/usr/local/bin/instant-markdown-d:
npm -g install instant-markdown-d
cli-tools: how2
how2: node /usr/local/bin/how2
/usr/local/bin/how2:
@npm -g install how2
devtool: node /usr/local/bin/devtool
/usr/local/bin/devtool:
@npm -g install devtool
tmux: brew /usr/local/bin/tmux
/usr/local/bin/tmux:
brew install reattach-to-user-namespace
brew install tmux
tmux-config: tmux ~/.tmux.conf
~/.tmux.conf:
ln -s ~/dotfiles/tmux/.tmux.conf ~/.tmux.conf
tmuxinator: /usr/local/bin/tmuxinator
/usr/local/bin/tmuxinator:
sudo gem install tmuxinator
ln -s ~/dotfiles/tmuxinator ~/.tmuxinator
the_silver_searcher: brew /usr/local/bin/ag
/usr/local/bin/ag:
brew install the_silver_searcher
pgcli: brew /usr/local/bin/pgcli
/usr/local/bin/pgcli:
brew install pgcli
memcached: brew /usr/local/bin/memcached
/usr/local/bin/memcached:
brew install memcached
redis: brew /usr/local/bin/redis-server
/usr/local/bin/redis-server:
brew install redis
mongodb: brew /usr/local/bin/mongo
/usr/local/bin/mongo:
brew install mongodb
visidata: brew /usr/local/Cellar/visidata/1.0/bin/vd
brew install saulpw/vd/visidata
mongohacker: node /usr/local/lib/node_modules/mongo-hacker
/usr/local/lib/node_modules/mongo-hacker:
@npm install -g mongo-hacker
rabbitmq: brew /usr/local/bin/rabbitmq
/usr/local/bin/rabbitmq:
brew install rabbitmq
mariadb: brew /usr/local/bin/mysql
/usr/local/bin/mysql:
brew install mariadb
mycli: brew /usr/local/bin/mycli
/usr/local/bin/mycli:
brew install mycli
mutt: brew /usr/local/bin/mutt
/usr/local/bin/mutt:
brew install mutt
mutt-config: ~/.muttrc
~/.muttrc:
ln -s ~/dotfiles/muttrc ~/.muttrc
ln -s ~/dotfiles/mutt ~/.mutt
fetchmail: brew /usr/local/bin/fetchmail
/usr/local/bin/fetchmail:
brew install fetchmail
offlineimap: brew /usr/local/bin/offlineimap
/usr/local/bin/offlineimap:
brew install offlineimap
php56:
brew install homebrew/php/php56
brew install homebrew/php/php56-memcache
phpcs: ~/.composer/vendor/bin/phpcs
~/.composer/vendor/bin/phpcs:
@composer global require "squizlabs/php_codesniffer=*"
phpcs-rules: phpcs
ln -s $(shell pwd)/.phpcs.xml ~/.phpcs.xml
phpcs --config-set default_standard ~/.phpcs.xml
php-cs-fixer: brew
brew install php-cs-fixer
phpmd: ~/.composer/vendor/bin/phpmd
~/.composer/vendor/bin/phpmd:
@composer global require "phpmd/phpmd=*"
node: /usr/local/bin/node
/usr/local/bin/node:
brew install node
jscs: node ~/.jscs.json
~/.jscs.json:
@npm install -g jscs
ln -s ~/dotfiles/.jscs.json ~/.jscs.json
pomo: node /usr/local/bin/pomojs
/usr/local/bin/pomojs:
@npm install -g pomo
bower: node /usr/local/bin/bower
/usr/local/bin/bower:
@npm install -g bower
gulp: node /usr/local/bin/gulp
/usr/local/bin/gulp:
@npm install -g gulp
cordova: node /usr/local/bin/cordova
/usr/local/bin/cordova:
@npm install -g cordova
ionic: node /usr/local/bin/ionic
/usr/local/bin/ionic:
@npm install -g ionic
clif: /usr/local/bin/clif
/usr/local/bin/clif:
@npm install -g clif
jshint: node ~/.jshintrc
~/.jshintrc:
@npm install -g jshint
ln -s $(shell pwd)/.jshintrc ~/.jshintrc
eslint: node ~/.eslintrc
~/.eslintrc:
@npm install -g eslint
ln -s $(shell pwd)/.eslintrc ~/.eslintrc
jsonlint: node /usr/local/bin/jsonlint
/usr/local/bin/jsonlint:
@npm install -g jsonlint
js-yaml: /usr/local/bin/js-yaml
/usr/local/bin/js-yaml:
@npm install -g js-yaml
jsinspect: node /usr/local/bin/jsinspect
/usr/local/bin/jsinspect:
@npm install -g jsinspect
retire: node /usr/local/bin/retire
/usr/local/bin/retire:
@npm install -g retire
david: node /usr/local/bin/david
/usr/local/bin/david:
@npm install -g david
nsp: node /usr/local/bin/nsp
/usr/local/bin/nsp:
@npm install -g nsp
recess:
@npm install -g recess
sqlint: /usr/local/bin/sqlint
/usr/local/bin/sqlint:
@gem install sqlint
pm2: node /usr/local/bin/pm2
/usr/local/bin/pm2:
@npm install -g pm2
cmus: brew /usr/local/bin/cmus
/usr/local/bin/cmus:
brew install cmus
rma-key: ~/.ssh/id_dsa
~/.ssh/id_dsa:
cp ~/Google\ Drive\ File\ Stream/Mon\ Drive/rma-key/201805-rma-private-key-id_* ~/.ssh/
mv ~/.ssh/201805-rma-private-key-id_dsa ~/.ssh/id_dsa
mv ~/.ssh/201805-rma-private-key-id_dsa.pub ~/.ssh/id_dsa.pub
mv ~/.ssh/201805-rma-private-key-id_rsa ~/.ssh/id_rsa
mv ~/.ssh/201805-rma-private-key-id_rsa.pub ~/.ssh/id_rsa.pub
osx:
# See secrets.blacktree.com
chsh -s /bin/zsh $(USER)
sudo scutil --set ComputerName $(COMPUTER_NAME)
sudo scutil --set HostName $(COMPUTER_NAME)
sudo scutil --set LocalHostName $(COMPUTER_NAME)
sudo defaults write \
/Library/Preferences/SystemConfiguration/com.apple.smb.server \
NetBIOSName -string $(COMPUTER_NAME)
# Allow apps downloaded from "Anywhere"
sudo spctl --master-disable
# Disabled shadow in screenshots
@defaults write com.apple.screencapture disable-shadow -bool true
# Enalble Ctrl+Alt+cmd+t for darkmode
@sudo defaults write /Library/Preferences/.GlobalPreferences.plist \
_HIEnableThemeSwitchHotKey -bool true
# no .DS_Store on network
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Don’t automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad \
Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Disable "Natural" scroll
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# Enable move with 3 fingers
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad \
TrackpadThreeFingerDrag -bool true
# dock size & autohidden dock
defaults write com.apple.dock tilesize -int 64
defaults write com.apple.dock autohide -bool false
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Set a blazingly fast keyboard repeat rate
defaults write InitialKeyRepeat -int 15
defaults write KeyRepeat -int 0
# 14 days on ical
defaults write com.apple.iCal n\ days\ of\ week 14
# Finder
defaults write com.apple.finder NewWindowTarget -string "PfLo"
defaults write com.apple.finder NewWindowTargetPath -string "file://$(HOME)/Downloads/"
# Mouse speed
defaults write com.apple.scrollwheel.scaling -string "0.75"
defaults write com.apple.mouse.scaling -string "2"
# Dock
defaults write com.apple.dock "show-recents" -int 0
wallpaper:
# Set wallpaper
osascript -e "tell application \"System Events\" to set picture of every \
desktop to \"~/dotfiles/wallpapers/2.png\""
encfs: osxfuse
brew install encfs
osxfuse:
brew cask install osxfuse
all.config: vim-config \
git-config \
tmux-config \
zshrc-config \
all.addon: diff-so-fancy \
shiftit \
cli-tools \
jq \
jsonlint \
eslint \
all: brew \
vim \
iterm2 \
oh-my-zsh \
node \
cmake \
highlight \
slack \
osx \
encfs \
wireshark \
htop \
keepassx \
docker \
vscode \
ansible \
watch \
mtr \
vlc \