aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--etc/.ignore7
-rw-r--r--justfile2
2 files changed, 6 insertions, 3 deletions
diff --git a/etc/.ignore b/etc/.ignore
index e27185c..3c1d9d9 100644
--- a/etc/.ignore
+++ b/etc/.ignore
@@ -13,12 +13,15 @@
# Per-host identity / secrets
/etc/ssh/ssh_host_*
+/etc/passwd
+/etc/passwd-
+/etc/group
+/etc/group-
/etc/shadow
/etc/shadow-
/etc/gshadow
/etc/gshadow-
-/etc/passwd-
-/etc/group-
+/etc/shells
# pacman leftovers from removed packages
*.pacsave
diff --git a/justfile b/justfile
index a5aa2aa..5131474 100644
--- a/justfile
+++ b/justfile
@@ -210,7 +210,7 @@ etc-drift:
echo "=== /etc drift ==="
echo "--- modified package configs ---"
- { pacman -Qkk 2>/dev/null | grep -oP ':\s+\K/\S+(?=\s+\((Modified|Altered) backup file\))' || true; } | sort -u \
+ { pacman -Qkk 2>/dev/null | grep -oP '^backup file:\s+[^:]+:\s+\K/etc/\S+' || true; } | sort -u \
| while IFS= read -r p; do keep "$p" && echo " modified: $p"; :; done
echo "--- user-created (no owning package) ---"