-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 849 Bytes
/
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
.PHONY: vscode
DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
link:
chezmoi apply --mode symlink
mise:
mise up -y
mise prune -y
mise reshim
fish:
fish -c "fisher update"
VSCODE_CONFIG_DIR=${HOME}/Library/Application\ Support/Code/User
VSCODE_CONFIG_FILES=settings.json keybindings.json snippets
vscode: vscode/extensions
$(foreach config,$(VSCODE_CONFIG_FILES),ln -nis ${DIR}/vscode/${config} ${VSCODE_CONFIG_DIR}/${config};)
vscode/dump:
code --list-extensions > ./vscode/extensions.txt
vscode/extensions:
@cat ./vscode/extensions.txt | while read line; \
do \
code --install-extension $$line; \
done
brew:
which brew || bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew bundle install --no-lock
brew/dump:
brew bundle dump --force --brews --casks --taps