X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/d215fb8c4bb24685149e374ced9ab2fa5c2fd21e..d48337190565ee88c2cb17eecf7cf5bbd4d433e8:/.mutt/batch-subject-editor?ds=inline diff --git a/.mutt/batch-subject-editor b/.mutt/batch-subject-editor index ad12bef..0649ac5 100755 --- a/.mutt/batch-subject-editor +++ b/.mutt/batch-subject-editor @@ -9,6 +9,10 @@ # set -eu +if [ -z "${__RLWRAPPED:-}" ] && [ -x $(command -v rlwrap) ]; then + __RLWRAPPED=true exec rlwrap "$0" "$@" +fi + printf 'Enter new subject: ' >/dev/tty read subj