aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/justfile b/justfile
index c15fbf1..fabe4f0 100644
--- a/justfile
+++ b/justfile
@@ -74,6 +74,19 @@ status:
echo "=== Dotfile drift ==="
chezmoi status -S . || true
+# Show dotfile diffs; pass a path to limit to a single file (e.g. just diff .config/nvim/init.lua)
+diff file="":
+ chezmoi diff -S . {{ file }}
+
+# Resolve dotfile conflicts with a 3-way merge; pass a path for one file, or omit to merge all
+merge file="":
+ #!/bin/sh
+ if [ -n '{{ file }}' ]; then
+ chezmoi merge -S . '{{ file }}'
+ else
+ chezmoi merge-all -S .
+ fi
+
# Show per-group install coverage; pass a group name for a per-package breakdown
groups group="":
#!/bin/sh