-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (18 loc) · 927 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
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*? ## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}'
backup: ## Backup nvim ~/.cache/nvim, ~/.local/{share,state}/nvim
cp -r ~/.local/share/nvim ~/.local/share/nvim.bak
cp -r ~/.local/state/nvim ~/.local/state/nvim.bak
cp -r ~/.cache/nvim ~/.cache/nvim.bak
restore: ## Restore nvim ~/.cache/nvim, ~/.local/{share,state}/nvim
cp -r ~/.local/share/nvim.bak ~/.local/share/nvim
cp -r ~/.local/state/nvim.bak ~/.local/state/nvim
cp -r ~/.cache/nvim.bak ~/.cache/nvim
cleanup: ## Cleanup packer config
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
install: backup cleanup ## Get and prepare lazy plugin manager
git clone --filter=blob:none https://github.com/folke/lazy.nvim.git --branch=stable ~/.local/share/nvim/lazy/lazy.nvim
.PHONY: help backup restore cleanup install