-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 1.38 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
SHELL := /bin/bash
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
backup-dconf: ## Backup dconf configurations
dconf dump /org/gnome/ > ./.config/dconf/settings.dconf
backup-code: ## Backup VS Code extensions, settings, keybindings, and snippets
code --list-extensions > ~/.config/Code/extensions.txt
cp -r ~/.config/Code/User/snippets ./.config/Code/User/
cp ~/.config/Code/User/keybindings.json ./.config/Code/User/keybindings.json
cp ~/.config/Code/User/settings.json ./.config/Code/User/settings.json
backup: backup-dconf backup-code ## Backup dconf and VS Code configuration files
restore-dconf: ## Restore dconf settings
dconf load /org/gnome/ < ./.config/dconf/settings.dconf
restore-code: ## Restore VS Code settings, keybindings, and snippets
cp -r ./.config/Code/User/snippets ~/.config/Code/User/
cp ./.config/Code/User/keybindings.json ~/.config/Code/User/keybindings.json
cp ./.config/Code/User/settings.json ~/.config/Code/User/settings.json
restore-exts: ## Restore VS Code extensions
bash ./scripts/vscode-exts.sh
restore: restore-dconf restore-code restore-exts ## Restore dconf and VS Code from backed up configs
devtools: ## Setup devtools
bash devtools.sh
copy: ## Copy local Ubuntu install
bash copy.sh
setup: ## Setup local Ubuntu install
bash setup.sh