/
install-quicklook-plugins.sh
executable file
·85 lines (67 loc) · 2.98 KB
/
install-quicklook-plugins.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env bash
# Script adapted from: https://mths.be/macos
# Original plugins list: https://github.com/sindresorhus/quick-look-plugins
###############################################################################
# Homebrew
###############################################################################
# Preview source code files with syntax highlighting (like colored .JS files)
brew install qlcolorcode &&
# Preview Markdown files
brew install qlstephen &&
# Preview JSON files with syntax highlighting
brew install quicklook-json &&
# Preview plaintext files with unknown extensions, like README, CHANGELOG, etc.
brew install qlstephen &&
# Display image size and resolution in windo titlebar of Quick Look
# Doesn't work due to API change from Apple
# https://github.com/Nyx0uf/qlImageSize/issues/45#issuecomment-610852166
#brew install qlimagesize &&
# Preview Adobe ASE color swatch files from Photoshop, Illustrator
# Doesn't work in macOS Catalina
#brew install quicklookase &&
# Preview the content of .IPA files
# Installs inside /Applications folder
brew install suspicious-package &&
# Preview the content of Android .APK files
# Doesn't work in macOS Catalina
#brew install quicklookapk
# Preview iOS/macOS provisioning information for .ipa and .xcarchive
# For 'mobileprovision' files, Xcode has Quick Look plugin collision:
# https://github.com/ealeksandrov/ProvisionQL/issues/20
brew install provisionql &&
# Preview the content of macOS apps
# Installs inside /Applications folder
brew install apparency &&
# Preview WebP images
brew install webpquicklook
# Preview ZIP archives
# Installs inside /Applications folder
# Run BetterZip to enable Quick Look plugin
brew install betterzip
# Preview videos files as single frames
# I don't like the presentation as it doesn't play the movie.
# Finder can natively play the movie through QuickLook.
#brew install qlvideo
# Remove quarantine attribute for macOS Catalina and above
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLColorCode.qlgenerator &&
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLMarkdown.qlgenerator &&
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QuickLookJSON.qlgenerator &&
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLStephen.qlgenerator &&
#xattr -d -r com.apple.quarantine ~/Library/QuickLook/qlImageSize.qlgenerator &&
#xattr -d -r com.apple.quarantine ~/Library/QuickLook/QuickLookASE.qlgenerator &&
xattr -d -r com.apple.quarantine ~/Library/QuickLook/ProvisionQL.qlgenerator &&
#xattr -d -r com.apple.quarantine ~/Library/QuickLook/QuickLookAPK.qlgenerator &&
xattr -d -r com.apple.quarantine ~/Library/QuickLook/WebpQuickLook.qlgenerator
# Restart Quick Look Server
qlmanage -r &&
qlmanage -r cache &&
echo ''
echo 'Right-click and choose "Open" on these 2 apps:'
echo '/Applications/BetterZip.app'
echo '/Applications/Suspicious Package.app'
echo ''
echo 'Restart the Finder:'
echo '1) Hold down the option key'
echo '2) Right-click on the Finder icon in the Dock'
echo '3) Choose "Relaunch"'
echo ''