]> Sergey Matveev's repositories - dotfiles.git/commitdiff
.info and .txt alias viewer
authorSergey Matveev <stargrave@stargrave.org>
Thu, 15 Jul 2021 17:19:38 +0000 (20:19 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 15 Jul 2021 17:22:51 +0000 (20:22 +0300)
lynx/.mailcap
mutt/.mime.types
zsh/.zshrc

index 820173d903d0c00316e245ec81e6eeab390253a7..aff20273bfa4d4f89f2e8ac0862c94d6017f4ad1 100644 (file)
@@ -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
index 1205d53bdb6de2f2c350c2ef2589a4ee5a869e61..07f199c006a9975a7d38e589a8bf97c8a8712ddb 100644 (file)
@@ -4,3 +4,5 @@ image/jpeg jpeg
 image/jpeg jpg
 image/png png
 image/webp webp
+text/info info
+text/plain txt
index 39fa3a5373f2565e57df2e839c1789d6f2118e51..13cdff3101b3873b36674824b1c0f3e4bea09450 100644 (file)
@@ -94,7 +94,6 @@ ssht() {
 
 autoload -U zsh-mime-setup ; zsh-mime-setup
 alias -s html=lynx
-alias -s txt=less
 
 autoload -U zmv
 # }}}