commit a96023c55ebc96a86e09d82609fa7e415d96e298 Spenser Truex <truex@equwal.com> 2026-09-20 21:58:46 -0700 bm: run bm-sync after a change, when it is installed Like bm-commit: nothing happens unless the program is on PATH. It runs in the background, so a slow network never holds the menu up.
bm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bm b/bm index 52c7718..92cb64c 100755 --- a/bm +++ b/bm @@ -326,9 +326,11 @@ learn_tags () { } # changed <message>: the file was written. bm-commit, where installed, keeps -# its history in git. +# its history in git. bm-sync, where installed, tells your other machines; it +# runs in the background, so that a slow network never holds the menu up. changed () { if have bm-commit; then bm-commit "$1"; fi + if have bm-sync; then bm-sync -q >/dev/null 2>&1 & fi } # ---- actions ----