Add manpage pdf function

This commit is contained in:
Jan Jastrow 2023-02-02 23:36:17 +01:00
parent 7248253cdb
commit a580668f9e
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ function targz() {
fi
}
# Export manpage as PDF
function manp() {
man -t $1 | pstopdf -o $TMPDIR/$1.pdf && open $TMPDIR/$1.pdf && sleep 1 && rm $TMPDIR/$1.pdf
}
# pushover notification
function pushover() {
curl -s \