tb-dotfiles/chezmoi/dot_zshrc.d/executable_pdf_join.zsh
2022-04-22 10:06:53 -04:00

13 lines
268 B
Bash

if [[ "$OSTYPE" = darwin* ]]; then
pdf_join() {
(
set -euo pipefail
read -r "output_file?Name of output file: "
"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" \
-o "$output_file" "$@"
open "$output_file"
)
}
fi