X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/3f60a48a03a03af682424be032112bccc1062102..9697fb1471e041b28c583426c7e113e2ea621fa9:/.mutt/edit-header diff --git a/.mutt/edit-header b/.mutt/edit-header index 07817d2..ab7444b 100755 --- a/.mutt/edit-header +++ b/.mutt/edit-header @@ -30,6 +30,10 @@ get_header_contents() script="${0%/*}/${2:-}" if [ -f "$script" ] && [ -x "$script" ]; then + if [ -z "${__RLWRAPPED:-}" ] && [ -x $(command -v rlwrap) ]; then + __RLWRAPPED=true exec rlwrap "$0" "$@" + fi + contents_source="$script" shift else