Skip to content

Instantly share code, notes, and snippets.

@pavel-sakun
Last active June 9, 2018 16:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save pavel-sakun/6192519 to your computer and use it in GitHub Desktop.
Save pavel-sakun/6192519 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