darkrc/bin/zread

5 lines
167 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 --fork ${@:2} -
rm $dir -rf