From 77f8f147043cf3e1103a55270b17be5395451c32 Mon Sep 17 00:00:00 2001 From: Michael Wei Date: Sat, 19 Jan 2019 16:50:38 -0800 Subject: [PATCH] :sparkles: mailcap: support URLs and files --- rtv/templates/mailcap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtv/templates/mailcap b/rtv/templates/mailcap index 5177467..1c3f45b 100644 --- a/rtv/templates/mailcap +++ b/rtv/templates/mailcap @@ -44,7 +44,7 @@ video/*; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY" # View images directly in your terminal with iTerm2 # curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash -# image/*; curl -s %s | ~/.iterm2/imgcat && read -n 1; needsterminal +# image/*; bash -c '[[ "%s" == http* ]] && (curl -s %s | ~/.iterm2/imgcat) || ~/.iterm2/imgcat %s' && read -n 1; needsterminal # View true images in the terminal, supported by rxvt-unicode, xterm and st # Requires the w3m-img package