From 824310ee8ec5b825e0339b5592cf3eacf7cf577b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 25 Nov 2019 16:49:24 +1300 Subject: [PATCH 1/1] make sidebar settings sourcing dependent on patch existence --- .mutt/muttrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.mutt/muttrc b/.mutt/muttrc index 5ef2b95..90bd690 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -13,7 +13,6 @@ source $my_confdir/keybindings source $my_confdir/lists source $my_confdir/spam source $my_confdir/hooks -source $my_confdir/sidebar auto_view text/html text/calendar #auto_view application/x-gunzip application/x-tar-gz application/x-tar application/x-gtar @@ -31,3 +30,7 @@ source "test -f $my_mutt_mailboxes && cat $my_mutt_mailboxes|" source "test -f $alias_file && cat $alias_file 2>/dev/null || echo unset alias_file|" source "mutt -DF/dev/null | grep -q send_multipart_alternative && cat $my_confdir/multipart-alternative|" + +# only source sidebar settings if the sidebar patch exist, i.e. default is +# non-zero +source "test -z $sidebar_visible || cat $my_confdir/sidebar|" -- 2.39.5