From b40b0b1d4f7c7b4758c63cd42e05165415e7c13b Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 16:42:52 +1100 Subject: [PATCH] iterm2 image rendring should work now. --- fetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch b/fetch index 6f248d44..49262944 100755 --- a/fetch +++ b/fetch @@ -1350,8 +1350,7 @@ if [ "$image" != "off" ]; then ;; "iterm2") - base64="$(printf "%s" "$img" | base64)" - printf "%b%s" "\e[1337;File=width=${imgsize}px;height=${imgsize}px;inline=1:${base64}" + printf "%b%s" "\033]1337;File=width=${imgsize}px;height=${imgsize}px;inline=1:$(base64 < "$img")" ;; esac fi