forked from boochtek/mac_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquicklook.sh
executable file
·42 lines (27 loc) · 1.12 KB
/
quicklook.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
## Configure QuickLook to handle more file types.
## CREDITS:
## Most of these were recommended by https://github.com/sindresorhus/quick-look-plugins
## Text selection feature recommended by http://lifehacker.com/5874280/copy-text-from-quick-look-previews-with-a-terminal-hack
source 'homebrew.sh'
# Preview Markdown files.
brew cask install qlmarkdown
# Preview plain text files without a file extension (README, CHANGELOG, etc.).
brew cask install qlstephen
# Preview source code files for various programming languages, with syntax highlighting.
brew cask install qlcolorcode
# Preview JSON files.
brew cask install quicklook-json
# Preview CSV files.
brew cask install quicklook-csv
# Preview diffs.
brew cask install qlprettypatch
# Preview archives (ZIP, tar, gzip, bzip2, ARJ, LZH, ISO, etc.).
brew cask install betterzipql
# Preview SSL/X509 certificate files (CRT, PEM, DER, etc.).
brew cask install cert-quicklook
# Reload QuickLook daemon, so new plugins will work.
qlmanage -r
# Enable text selection in QuickLook views.
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
killall Finder