forked from denolfe/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 1.05 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
.PHONY: install karabiner macos brew brew-restore
# Run dotbot install script
install:
./install
# Generate karabiner.json and bounce karabiner
karabiner:
jsonnet karabiner/karabiner.jsonnet -o karabiner/karabiner.json
launchctl stop org.pqrs.karabiner.karabiner_console_user_server
sleep 0.2
launchctl start org.pqrs.karabiner.karabiner_console_user_server
# Install extensions from vscode/extensions.txt
vscode-install:
cat ${DOTFILES}/vscode/extensions.txt | xargs -L 1 code --install-extension
# Save all current extensions to vscode/extensions.txt
vscode-save:
code --list-extensions > ${DOTFILES}/vscode/extensions.txt
# Save snapshot of all Homebrew packages to macos/Brewfile
brew:
brew bundle dump -f --file=macos/Brewfile
brew bundle --force cleanup --file=macos/Brewfile
# Restore Homebrew packages
brew-restore:
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install | ruby
brew update
brew upgrade
brew install mas
brew bundle install --file=macos/Brewfile
brew cleanup
# Set MacOS defaults
macos:
./macos/set-defaults.sh