Re: chaining commands in a macro
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, July 31 at 03:24 PM, quoth Eric Smith:
>How do I chain the following commands in a macro?
>
>macro attach s '<save-entry><bol>/tmp/<eol>' 'save attachment'
>"<shell-escape> sudo chmod a+r /tmp/*<enter>"</enter></shell-escape>
Like so:
macro attach s '<save-entry><bol>/tmp/<enter><shell-escape> sudo chmod a+r
/tmp/*<enter>'
The only thing it won't do is pause in the middle to let you finish
the name of the file you want to save it as.
> </enter></shell-escape>
What are these? Mutt's syntax may look like HTML, but it's not html.
>Is it possible to chain macros themselves?
Yes.
macro index ,a '<enter-command>do something<enter>'
macro index ,b '<enter-command>do something else<enter>'
macro index ,c ',a,b'
~Kyle
- --
Die for the person who will catch a cold for you.
-- Persian saying
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFEzgwzBkIOoMqOI14RAhdkAKCpgLDhOtG7N+2oyjDwRRqZxeRpkACfcP0o
AdPFBJ9yuqiJrapOJ5wJW3M=
=BpeX
-----END PGP SIGNATURE-----