aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorOliver Schrenk <oliver.schrenk@gmail.com>2012-07-31 16:31:29 +0200
committerMathias Bynens <mathias@qiwi.be>2012-07-31 20:13:23 +0200
commit5c3306ce4d5a0944babc13b10e766b926ec03cb2 (patch)
tree6714475ff496762164c8ce773e06c3e58b8e815b /.aliases
parent9c934b832c97030d5486f40a1343afa6ad091244 (diff)
downloaddotfiles-5c3306ce4d5a0944babc13b10e766b926ec03cb2.tar.gz
dotfiles-5c3306ce4d5a0944babc13b10e766b926ec03cb2.tar.bz2
dotfiles-5c3306ce4d5a0944babc13b10e766b926ec03cb2.zip
.aliases: Add `mergepdf` alias that concatenates PDF files
Credit goes to Fritz Stelluto: http://blog.gotofritz.net/howto/joining-pdf-files-in-os-x-from-the-command-line/.
Diffstat (limited to '.aliases')
-rw-r--r--.aliases4
1 files changed, 4 insertions, 0 deletions
diff --git a/.aliases b/.aliases
index 219ff07..5090499 100644
--- a/.aliases
+++ b/.aliases
@@ -95,6 +95,10 @@ alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && k
# URL-encode strings
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"'
+# Merge PDF files
+# Usage: `mergepdf -o output.pdf input{1,2,3}.pdf`
+alias mergepdf='/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py'
+
# Disable Spotlight
alias spotoff="sudo mdutil -a -i off"
# Enable Spotlight