mirror of
https://github.com/captn3m0/dotfiles.git
synced 2024-09-28 04:22:53 +00:00
Adds download-as-pdf
This commit is contained in:
parent
bb6ff7d46d
commit
2f383b303e
@ -154,6 +154,10 @@ function pingen { pwgen -1Avs -r=qwertyuiopasdfghjklzxcvbnm "$1"; }
|
|||||||
# Sort a file in-place
|
# Sort a file in-place
|
||||||
function sortinplace { sort -o "$1" "$1"; }
|
function sortinplace { sort -o "$1" "$1"; }
|
||||||
|
|
||||||
|
function download_as_pdf {
|
||||||
|
rdrview --template "title,body" "$1" -H | tidy | pandoc --from html --pdf-engine=xelatex -o "$2"
|
||||||
|
}
|
||||||
|
|
||||||
# alias kapitan='docker run -t --rm -u $(id -u) -v $(pwd):/src:delegated deepmind/kapitan'
|
# alias kapitan='docker run -t --rm -u $(id -u) -v $(pwd):/src:delegated deepmind/kapitan'
|
||||||
# check the window size after each command and, if necessary,
|
# check the window size after each command and, if necessary,
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
|
Loading…
Reference in New Issue
Block a user