]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Let's try to use suffix aliases
authorSergey Matveev <stargrave@stargrave.org>
Wed, 14 Jul 2021 09:58:29 +0000 (12:58 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 14 Jul 2021 17:36:19 +0000 (20:36 +0300)
lynx/.mailcap
mutt/.mime.types
zsh/.zshrc

index 0b40851507ae80f0237c8efaba1ee5f20bfbad1e..820173d903d0c00316e245ec81e6eeab390253a7 100644 (file)
@@ -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
index 5a7d4537706cee60bcaa3b9475d2124111904d5d..1205d53bdb6de2f2c350c2ef2589a4ee5a869e61 100644 (file)
@@ -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
index a42a351d2b21c8f1aa9a08c1c5045e2688ce2aa2..6e04b1aa3f243e802daed2b65909304c76e1a361 100644 (file)
@@ -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 {{{