diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-07 19:39:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-07 21:31:47 +1200 |
commit | bda650a7e5e72a9205112884cd7ba18198dff8f9 (patch) | |
tree | 0f6e874ad2141dbb648b83a8eeb08c6a94addc6a /bin/mim.mi5 | |
parent | Include .gvimrc patterns for vim filetype (diff) | |
download | dotfiles-bda650a7e5e72a9205112884cd7ba18198dff8f9.tar.gz dotfiles-bda650a7e5e72a9205112884cd7ba18198dff8f9.zip |
Replace mail_mutt.vim with mim(1df)
Way better, and more generally useful.
Diffstat (limited to 'bin/mim.mi5')
-rwxr-xr-x | bin/mim.mi5 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/mim.mi5 b/bin/mim.mi5 new file mode 100755 index 00000000..1c04e185 --- /dev/null +++ b/bin/mim.mi5 @@ -0,0 +1,12 @@ +# Open up Mutt to a new message starting with input + +<% +include(`include/mktd.m4') +%> + +# Direct all input (stdin and files) into a tempfile +tf=$td/out +cat -- "${@:--}" > "$tf" || exit + +# Run Mutt on the tempfile, showing it the TTY for its input +mutt -i "$tf" < /dev/tty |