Add zread command

This commit is contained in:
Talia 2020-01-07 13:20:04 +01:00
parent c38df189ec
commit ca3e047d3e

5
bin/zread Executable file
View file

@ -0,0 +1,5 @@
#!/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