diff --git a/dotfiles/zshrc.d/site2pdf.zsh b/dotfiles/zshrc.d/site2pdf.zsh new file mode 100644 index 0000000..4d77620 --- /dev/null +++ b/dotfiles/zshrc.d/site2pdf.zsh @@ -0,0 +1,6 @@ +function site2pdf { + setopt localoptions nounset + local URL=${1} + local OUTFILE=${2} + command wkhtmltopdf -s Letter -q ${URL} ${OUTFILE} +} diff --git a/packages b/packages index b5c4bfd..89f1673 100644 --- a/packages +++ b/packages @@ -43,4 +43,5 @@ tshark ufw vim whois +wkhtmltopdf zsh