-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
48 lines (36 loc) · 873 Bytes
/
Copy pathjustfile
File metadata and controls
48 lines (36 loc) · 873 Bytes
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
set shell := ["bash", "-cu"]
dotfiles := justfile_directory()
# Default: show available recipes
default:
@just --list
# === CHEZMOI OPERATIONS ===
# Apply all dotfiles
apply:
chezmoi apply -v
# Show what would change
diff:
chezmoi diff
# Pull remote changes and apply
update:
chezmoi update -v
# Re-init config (after changing .chezmoi.yaml.tmpl)
init:
chezmoi init --source {{ dotfiles }}
# Edit a managed file (opens source, applies on save)
edit file:
chezmoi edit {{ file }}
# === STATUS ===
# Show dotfiles status
status:
@echo "=== Managed Files ==="
@chezmoi status
@echo ""
@echo "=== Git Status ==="
@cd {{ dotfiles }} && git status --short
# Show what chezmoi manages
managed:
chezmoi managed
# === BOOTSTRAP ===
# Bootstrap on a new machine
bootstrap:
chezmoi init --apply FlorinPopaCodes/dotfiles