From 079aed113e54a018eff554a9f729236ffb6e413b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 29 Jul 2022 13:31:30 +0300 Subject: [PATCH] Autoview .man and .pod --- lynx/.mailcap | 2 ++ mutt/.mime.types | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lynx/.mailcap b/lynx/.mailcap index b4ba8c2..3ca3d72 100644 --- a/lynx/.mailcap +++ b/lynx/.mailcap @@ -1,6 +1,7 @@ application/epub+zip; zat '%s'; test=test -n "$DISPLAY" application/pdf; zat '%s'; test=test -n "$DISPLAY" application/vnd.gnupg.wks; gpg-wks-client -v --read --send; needsterminal; description=WKS message +application/x-perl; pod2text --color '%s' | less; needsterminal image/jpeg; sxiv '%s'; test=test -n "$DISPLAY" image/jxl; sxiv '%s'; test=test -n "$DISPLAY" image/png; sxiv '%s'; test=test -n "$DISPLAY" @@ -17,3 +18,4 @@ image/x-xpixmap; sxiv '%s'; test=test -n "$DISPLAY" text/html; lynx -noreferer -partial -assume_charset=%{charset} -dump %s; copiousoutput; nametemplate=%s.html text/info; info '%s'; needsterminal text/plain; less '%s'; needsterminal +text/x-man; man '%s'; needsterminal diff --git a/mutt/.mime.types b/mutt/.mime.types index 2a907e1..89ac94f 100644 --- a/mutt/.mime.types +++ b/mutt/.mime.types @@ -2,6 +2,7 @@ application/epub+zip epub application/gzip gz application/metalink4+xml meta4 application/pdf pdf +application/x-perl pod application/zstd zst image/jpeg jpeg jpg image/jxl jxl @@ -17,3 +18,4 @@ image/x-portable-pixmap ppm image/x-xpixmap xpm text/info info text/plain txt +text/x-man man -- 2.44.0