File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && k
105
105
# URL-encode strings
106
106
alias urlencode=' python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"'
107
107
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 '
111
111
112
112
# Disable Spotlight
113
113
alias spotoff=" sudo mdutil -a -i off"
@@ -130,9 +130,6 @@ for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
130
130
alias " ${method} " =" lwp-request -m '${method} '"
131
131
done
132
132
133
- # Make Grunt print stack traces by default
134
- command -v grunt > /dev/null && alias grunt=" grunt --stack"
135
-
136
133
# Stuff I never really use but cannot delete either because of http://xkcd.com/530/
137
134
alias stfu=" osascript -e 'set volume output muted true'"
138
135
alias pumpitup=" osascript -e 'set volume output volume 100'"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ brew install moreutils
22
22
brew install findutils
23
23
# Install GNU `sed`, overwriting the built-in `sed`.
24
24
brew install gnu-sed --with-default-names
25
- # Install Bash 4 .
25
+ # Install a modern version of Bash .
26
26
brew install bash
27
27
brew install bash-completion2
28
28
@@ -83,6 +83,7 @@ brew install ack
83
83
# brew install exiv2
84
84
brew install git
85
85
brew install git-lfs
86
+ brew install gs
86
87
brew install imagemagick --with-webp
87
88
brew install lua
88
89
brew install lynx
You can’t perform that action at this time.
0 commit comments