1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 19:19:44 +01:00

run-mailcup: run-mailcup, compose, edit, print, see commands (thanks to @flouthoc)

This commit is contained in:
Igor Shubovych 2016-02-04 19:02:50 +02:00
parent ad4925e569
commit 027402e8e7
5 changed files with 72 additions and 0 deletions

12
pages/linux/compose.md Normal file
View file

@ -0,0 +1,12 @@
# compose
> An alias to a `run-mailcap`'s action compose.
> Originally `run-mailcap` is used to mime-type/file.
- Compose action can be used to compose any existing file or new on default mailcap edit tool:
`compose {{filename}}`
- With `run-mailcap`:
`run-mailcap --action=compose {{filename}}`

12
pages/linux/edit.md Normal file
View file

@ -0,0 +1,12 @@
# edit
> An alias to a `run-mailcap`'s action edit.
> Originally `run-mailcap` is used to process/edit mime-type/file.
- Edit action can be used to view any file on default mailcap explorer:
`edit {{filename}}`
- With `run-mailcap`:
`run-mailcap --action=edit {{filename}}`

12
pages/linux/print.md Normal file
View file

@ -0,0 +1,12 @@
# print
> An alias to a `run-mailcap`'s action print.
> Originally `run-mailcap` is used to process mime-type/file.
- Print action can be used to print any file on default run-mailcap tool:
`print {{filename}}`
- With `run-mailcap`:
`run-mailcap --action=print {{filename}}`

View file

@ -0,0 +1,24 @@
# run-mailcap
> Run MailCap Programs.
> Run mailcap view, see, edit, compose, print - execute programs via entries in the mailcap file (or any of its aliases) will use the given action to process each mime-type/file.
- Individual actions/programs on run-mailcap can be invoked with action flag:
`run-mailcap --action=ACTION [--option[=value]]`
- In simple language:
`run-mailcap --action=ACTION {{filename}}`
- Turn on extra information:
`run-mailcap --action=ACTION --debug {{filename}}`
- Ignore any "copiousoutput" directive and forward output to STD‐OUT:
`run-mailcap --action=ACTION --nopager {{filename}}`
- Display the found command without actually executing it:
`run-mailcap --action=ACTION --norun {{filename}}`

12
pages/linux/see.md Normal file
View file

@ -0,0 +1,12 @@
# see
> Alias to `run-mailcap`'s view.
> An alias to a `run-mailcap`'s action print.
- See action can be used to view any file (usually image) on default mailcap explorer:
`see {{filename}}`
- Using with `run-mailcap`:
`run-mailcap --action=view {{filename}}`