Skip to content

Instantly share code, notes, and snippets.

@florido
Forked from pavel-sakun/QLTextFiles.sh
Created March 15, 2017 03:49
Show Gist options
  • Save florido/5afbe335480ab5a89371336de0f088b1 to your computer and use it in GitHub Desktop.
Save florido/5afbe335480ab5a89371336de0f088b1 to your computer and use it in GitHub Desktop.
Use OSX Finder Quicklook to preview all plain text files. Handy shortcut for actions need to install QLStephen plugin for OSX Finder's QuickLook. Please find info on QLStephen at https://github.com/whomwah/qlstephen Usage: curl https://raw.github.com/gist/6192519 | sh
#!/bin/bash
curl -O http://cloud.github.com/downloads/whomwah/qlstephen/QLStephen.qlgenerator.zip
unzip QLStephen.qlgenerator.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.zip
qlmanage -r
echo "We're done. Have fun and do not forget to give a credit to QLStephen's author Duncan@https://github.com/whomwah"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment