darkrc/bin/zread
2020-01-07 13:20:04 +01:00

5 lines
160 B
Bash
Executable file

#!/bin/bash
export dir=$(mktemp -p /dev/shm -d -t tmp.XXXXXXXXXX)
ln -s /dev/stdout $dir/stdout.pdf
pandoc -o $dir/stdout.pdf $1 | zathura ${@:2} -
rm $dir -rf