From c12aa1f44834ae50c486d33d70e10c94da29c7c4 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 15 Jul 2021 20:19:38 +0300 Subject: [PATCH] .info and .txt alias viewer --- lynx/.mailcap | 4 +++- mutt/.mime.types | 2 ++ zsh/.zshrc | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lynx/.mailcap b/lynx/.mailcap index 820173d..aff2027 100644 --- a/lynx/.mailcap +++ b/lynx/.mailcap @@ -2,5 +2,7 @@ application/pdf; zat '%s'; test=test -n "$DISPLAY" image/gif; sxiv '%s'; test=test -n "$DISPLAY" image/jpeg; sxiv '%s'; test=test -n "$DISPLAY" image/png; sxiv '%s'; test=test -n "$DISPLAY" -image/webp; /sxiv '%s'; test=test -n "$DISPLAY" +image/webp; 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 diff --git a/mutt/.mime.types b/mutt/.mime.types index 1205d53..07f199c 100644 --- a/mutt/.mime.types +++ b/mutt/.mime.types @@ -4,3 +4,5 @@ image/jpeg jpeg image/jpeg jpg image/png png image/webp webp +text/info info +text/plain txt diff --git a/zsh/.zshrc b/zsh/.zshrc index 39fa3a5..13cdff3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -94,7 +94,6 @@ ssht() { autoload -U zsh-mime-setup ; zsh-mime-setup alias -s html=lynx -alias -s txt=less autoload -U zmv # }}} -- 2.44.0