darkrc/bin/zread

6 lines
167 B
Text
Raw Normal View History

2020-01-07 12:20:04 +00:00
#!/bin/bash
export dir=$(mktemp -p /dev/shm -d -t tmp.XXXXXXXXXX)
ln -s /dev/stdout $dir/stdout.pdf
2020-01-07 12:54:35 +00:00
pandoc -o $dir/stdout.pdf $1 | zathura --fork ${@:2} -
2020-01-07 12:20:04 +00:00
rm $dir -rf