Skip to content

Instantly share code, notes, and snippets.

@blvz
Forked from pavel-sakun/QLTextFiles.sh
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blvz/4bb412b6828277e7982a to your computer and use it in GitHub Desktop.
Save blvz/4bb412b6828277e7982a to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -O https://github.com/whomwah/qlstephen/releases/download/1.4.2/QLStephen.qlgenerator.1.4.2.zip
unzip QLStephen.qlgenerator.1.4.2.zip
echo "Please enter your password when asked (the one sudo asks you for usuqlly). It's needed to copy some files to /Library/QuickLook"
sudo mv -f QLStephen.qlgenerator /Library/QuickLook
rm QLStephen.qlgenerator.1.4.2.zip
qlmanage -r
# enables text selection
defaults write com.apple.finder QLEnableTextSelection -bool true; killall Finder
echo "We're done. Have fun and do not forget to give a credit to QLStephen's author Duncan@https://github.com/whomwah"
@blvz
Copy link
Author

blvz commented Aug 21, 2014

Usage
curl https://gist.githubusercontent.com/blvz/4bb412b6828277e7982a/raw/b1694ccdeb89ef1fe34ecb7b6376a340191a4a25/QLTextFiles.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment