X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/91f5e3280fb230b2c4b81fd31771613c2cad5432..d1b5afe949ebc16b998c2b36236bcf47409db744:/.mutt/batch-subject-editor?ds=sidebyside diff --git a/.mutt/batch-subject-editor b/.mutt/batch-subject-editor index 8cfbf5d..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