From 59af744246f38fb3c1cba33d06e680d29f866abd Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Fri, 18 Feb 2022 22:38:05 +0100 Subject: Separate host-specific config with files or inline --- dot.local-bin-sm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dot.local-bin-sm') diff --git a/dot.local-bin-sm b/dot.local-bin-sm index 63101ae..c0fd090 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -1,5 +1,13 @@ #!/bin/sh set -e +case $(hostname -s) in + naboo) + format='%u%r %3n %10d %17f %22F %t %i%S' + ;; + *) + format='%u%r %3n %10d %17f %8F %t %i%S' + ;; +esac set -x mbsync -a || true notmuch new @@ -11,5 +19,5 @@ notmuch tag -new -- tag:new and folder:GMail/mail nm-tagger export MAILSEQ="${MBLAZE:-$HOME/.mblaze}/seq.sm" export MBLAZE_PAGER="" -msearch -- --exclude=false query:new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %8F %t %i%S' +msearch -- --exclude=false query:new | mthread | mseq -S | mscan -f "$format" type mu > /dev/null && mu index || true -- cgit v1.2.3