Skip to content

Commit e42090b

Browse files
committed
.aliases: Make mergepdf preserve hyperlinks
1 parent 5368015 commit e42090b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.aliases

+3-6
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && k
105105
# URL-encode strings
106106
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"'
107107

108-
# Merge PDF files
109-
# Usage: `mergepdf -o output.pdf input{1,2,3}.pdf`
110-
alias mergepdf='/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py'
108+
# Merge PDF files, preserving hyperlinks
109+
# Usage: `mergepdf input{1,2,3}.pdf`
110+
alias mergepdf='gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=_merged.pdf'
111111

112112
# Disable Spotlight
113113
alias spotoff="sudo mdutil -a -i off"
@@ -130,9 +130,6 @@ for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
130130
alias "${method}"="lwp-request -m '${method}'"
131131
done
132132

133-
# Make Grunt print stack traces by default
134-
command -v grunt > /dev/null && alias grunt="grunt --stack"
135-
136133
# Stuff I never really use but cannot delete either because of http://xkcd.com/530/
137134
alias stfu="osascript -e 'set volume output muted true'"
138135
alias pumpitup="osascript -e 'set volume output volume 100'"

brew.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ brew install moreutils
2222
brew install findutils
2323
# Install GNU `sed`, overwriting the built-in `sed`.
2424
brew install gnu-sed --with-default-names
25-
# Install Bash 4.
25+
# Install a modern version of Bash.
2626
brew install bash
2727
brew install bash-completion2
2828

@@ -83,6 +83,7 @@ brew install ack
8383
#brew install exiv2
8484
brew install git
8585
brew install git-lfs
86+
brew install gs
8687
brew install imagemagick --with-webp
8788
brew install lua
8889
brew install lynx

0 commit comments

Comments
 (0)