From 81eaa8495370094f0134a5c164009a1df2959fd5 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 14 Jul 2021 12:58:29 +0300 Subject: [PATCH] Let's try to use suffix aliases --- lynx/.mailcap | 12 ++++++------ mutt/.mime.types | 8 ++++---- zsh/.zshrc | 5 +++++ 3 files changed, 15 insertions(+), 10 deletions(-) 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 {{{ -- 2.44.0