From da64868d7919227705aa219bf25905b73e154b76 Mon Sep 17 00:00:00 2001
From: "martin f. krafft" <madduck@madduck.net>
Date: Fri, 8 Dec 2023 13:54:16 +0100
Subject: [PATCH] include mutt wrapper

---
 .bin/mutt            | 7 +++++++
 .gitignore.d/neomutt | 3 +++
 2 files changed, 10 insertions(+)
 create mode 100755 .bin/mutt

diff --git a/.bin/mutt b/.bin/mutt
new file mode 100755
index 0000000..1197dac
--- /dev/null
+++ b/.bin/mutt
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if command -v neomutt >/dev/null; then
+  exec neomutt "$@"
+else
+  exec $(which -a mutt | grep -v $HOME | head -1) "$@"
+fi
diff --git a/.gitignore.d/neomutt b/.gitignore.d/neomutt
index 0bec907..e707de3 100644
--- a/.gitignore.d/neomutt
+++ b/.gitignore.d/neomutt
@@ -1,4 +1,5 @@
 *
+!/.bin/mutt
 !/.config/neomutt/ack-recipients
 !/.config/neomutt/aliases
 !/.config/neomutt/alternates
@@ -18,6 +19,7 @@
 !/.config/neomutt/headers
 !/.config/neomutt/hooks
 !/.config/neomutt/htmldump
+!/.config/neomutt/htmlmail.css
 !/.config/neomutt/icalparser
 !/.config/neomutt/keybindings
 !/.config/neomutt/list-mailboxes
@@ -29,6 +31,7 @@
 !/.config/neomutt/mailcap.icalendar
 !/.config/neomutt/mkconf
 !/.config/neomutt/neomuttrc
+!/.config/neomutt/pytest.ini
 !/.config/neomutt/remove-header
 !/.config/neomutt/replace-header
 !/.config/neomutt/reuse-message
-- 
2.39.5