Skip to content

Instantly share code, notes, and snippets.

@bobeckert
Last active August 12, 2016 16:52
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 bobeckert/affd733a68c305af3c0103ab4ace3a4a to your computer and use it in GitHub Desktop.
Save bobeckert/affd733a68c305af3c0103ab4ace3a4a to your computer and use it in GitHub Desktop.
fish function to open a markdown file as a new chrome tab
function mdopen
set tempfile "/tmp/temp_"(date +%s)".html"
pandoc $argv > $tempfile
open -a 'Google Chrome' $tempfile
sleep 2s
rm $tempfile
end
@bobeckert
Copy link
Author

Requires pandoc, which is available via Homebrew: brew install pandoc.

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