madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://"]
  insteadOf = madduck:

add pdfextract function
authormartin f. krafft <>
Mon, 7 Apr 2014 11:12:57 +0000 (13:12 +0200)
committermartin f. krafft <>
Mon, 7 Apr 2014 11:13:28 +0000 (13:13 +0200)

index 8e4ff53cd812237473e5911d665cdfab5035e404..7ae129991bf02b1f6247e97f81d0e9005f50e0f2 100644 (file)
@@ -206,4 +206,11 @@ if whence devtodo >/dev/null; then
   [[ -z ${(M)chpwd_functions:#_devtodo_on_chpwd} ]] && chpwd_functions+=_devtodo_on_chpwd
+pdfextract() {
+  local i=$1
+  local o=$2
+  shift 2
+  pdftk "$i" cat "${@:-1-end}" output "${o%.pdf}.pdf"
+compdef _files pdfextract
 # vim:ft=zsh