darkrc/bin/zread

6 lines
169 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
pandoc -o $dir/stdout.pdf "$1" | zathura --fork ${@:2} -
2020-01-07 12:20:04 +00:00
rm $dir -rf