-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (51 loc) · 1.78 KB
/
Makefile
File metadata and controls
73 lines (51 loc) · 1.78 KB
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
SHELL := /usr/bin/env bash
.DEFAULT_GOAL := help
HOST := $(shell hostname)
help:
@echo "Targets: bootstrap | link | unlink | restow | adopt | adopt-dry | adopt-merge | ensure-locale | mise-install | mise-install-globals | ohmyzsh-install | nvim-subtree-pull | nvim-subtree-push | nvim-stable | nvim-nightly | nvim-switch-stable | nvim-switch-nightly | fonts-linux | fonts-windows | startup | doctor"
bootstrap:
bash bootstrap.sh
startup:
bash scripts/startup.sh
link:
bash stow-all.sh
unlink:
find stow -maxdepth 1 -mindepth 1 -type d -printf "%f\n" | xargs -I{} stow -d stow -t $$HOME -D {}
restow:
unlink link
adopt:
bash scripts/adopt-existing.sh
adopt-dry:
bash scripts/adopt-existing.sh --dry-run
adopt-merge:
@echo "1) Adopting existing files (will backup to .migration_backups/)..."
bash scripts/adopt-existing.sh
@echo "2) Launching merge tool against latest backups..."
MERGE_TOOL=$${MERGE_TOOL:-nvimdiff} bash scripts/merge-from-backup.sh
ensure-locale:
bash scripts/ensure-locale.sh
ohmyzsh-install:
bash scripts/ohmyzsh-install.sh
mise-install:
bash scripts/install-mise.sh
mise-install-globals:
bash scripts/install-mise-globals.sh
nvim-subtree-pull:
bash scripts/nvim-subtree.sh pull
nvim-subtree-push:
bash scripts/nvim-subtree.sh push
nvim-stable:
bash scripts/nvim-manager.sh use stable
nvim-nightly:
bash scripts/nvim-manager.sh use nightly
nvim-current:
bash scripts/nvim-manager.sh current
fonts-linux:
bash scripts/install-fonts.sh
fonts-windows:
pwsh -NoProfile -ExecutionPolicy Bypass -File "$$HOME/.dotfiles/scripts/win/install-fonts.ps1"
doctor:
@command -v stow >/dev/null || echo "stow missing"
@command -v zsh >/dev/null || echo "zsh missing"
@command -v nvim >/dev/null || echo "neovim missing"
@command -v mise >/dev/null || echo "mise missing"