From: Sergey Matveev <stargrave@stargrave.org>
Date: Wed, 14 Jul 2021 09:58:29 +0000 (+0300)
Subject: Let's try to use suffix aliases
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=81eaa8495370094f0134a5c164009a1df2959fd5;p=dotfiles.git

Let's try to use suffix aliases
---

diff --git a/lynx/.mailcap b/lynx/.mailcap
index 0b40851..820173d 100644
--- a/lynx/.mailcap
+++ b/lynx/.mailcap
@@ -1,6 +1,6 @@
-text/html; /usr/local/bin/lynx -noreferer -partial -assume_charset=%{charset} -dump %s; copiousoutput; nametemplate=%s.html
-application/pdf; /home/stargrave/bin/zat '%s'; test=test -n "$DISPLAY"
-image/gif; /usr/local/bin/sxiv '%s'; test=test -n "$DISPLAY"
-image/jpeg; /usr/local/bin/sxiv '%s'; test=test -n "$DISPLAY"
-image/png; /usr/local/bin/sxiv '%s'; test=test -n "$DISPLAY"
-image/webp; /usr/local/bin/sxiv '%s'; test=test -n "$DISPLAY"
+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"
+text/html; lynx -noreferer -partial -assume_charset=%{charset} -dump %s; copiousoutput; nametemplate=%s.html
diff --git a/mutt/.mime.types b/mutt/.mime.types
index 5a7d453..1205d53 100644
--- a/mutt/.mime.types
+++ b/mutt/.mime.types
@@ -1,6 +1,6 @@
-image/webp webp
-image/png png
+application/gzip gz
 application/pdf pdf
-image/jpeg jpg
 image/jpeg jpeg
-application/gzip gz
+image/jpeg jpg
+image/png png
+image/webp webp
diff --git a/zsh/.zshrc b/zsh/.zshrc
index a42a351..6e04b1a 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -90,6 +90,11 @@ alias sshnm="ssh -S none"
 ssht() {
     ssh -C -t $1 tmux attach -t0
 }
+
+autoload -U zsh-mime-setup
+zsh-mime-setup
+alias -s html=lynx
+alias -s txt=less
 # }}}
 
 # Faster movement {{{