fixes and improvements
[distro-setup] / brc2
diff --git a/brc2 b/brc2
index 7b98ad9a991dfcaa84f398f1265045a7b963f097..54fe47b742835d1c3b8eb34e6d00234c22dbd68d 100644 (file)
--- a/brc2
+++ b/brc2
@@ -571,7 +571,7 @@ dnsb8() {
   local f=/var/lib/bind/db.b8.nz
   m ser stop named
   m sleep 1
-  m sudo rm -fv $f.jnl
+  m sudo rm -fv $f.jnl $f.signed.jnl
   m sudo install -m 644 -o bind -g bind /p/c/machine_specific/vps/bind-initial/db.b8.nz $f
   m ser restart named
 }
@@ -2212,7 +2212,7 @@ if type -P rg &>/dev/null; then
   # --no-messages because of annoying errors on broken symlinks
   # -z = search .gz etc files
   # -. = search dotfilesq
-  rg() { command rg -. -z --no-messages -L -i -M 900 --no-ignore "$@" || return $?; }
+  rg() { command rg -. -z --no-messages -L -i -M 900 --no-ignore-parent --no-ignore-vcs -g '!.git' "$@" || return $?; }
   #fails if not exist. ignore
   complete -r rg 2>/dev/null ||:
 else