-
Came across this little gem today gitlab.com/gnachman/iterm2/-/wikis/Base64FileDownload #iterm @gnachman But I didn't want to create a shell script so idwn () { printf '\033]1337;File=name='
echo -n "${1}" | base64
";"; wc -c "${1}" | awk '{printf "size=%d",$1}'; printf ":"; base64 < "${1}"; printf '\a'; }