From: Sergey Matveev Date: Thu, 15 Jul 2021 17:19:38 +0000 (+0300) Subject: .info and .txt alias viewer X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=c12aa1f44834ae50c486d33d70e10c94da29c7c4 .info and .txt alias viewer --- 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 # }}}