Files
dotfiles/Scripts/.local/scripts/web-pdf
dx afa33b7491 +little script to download and view pdf files
Curls a url to a temp file, then views it in mupdf. After mupdf is
terminated, delete the file.
2020-06-27 11:00:29 +01:00

8 lines
110 B
Bash
Executable File

#!/bin/sh
name="$(echo $1 | awk -F/ '{print $NF}')"
curl $1 -o /tmp/$name;
mupdf /tmp/$name;
rm /tmp/$name;