From: martin f. krafft Date: Mon, 25 Nov 2019 03:49:24 +0000 (+1300) Subject: make sidebar settings sourcing dependent on patch existence X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/824310ee8ec5b825e0339b5592cf3eacf7cf577b?ds=sidebyside make sidebar settings sourcing dependent on patch existence --- 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|"