Skip to content

Instantly share code, notes, and snippets.

@tzarskyz
Forked from ttscoff/editor.sh
Created March 31, 2013 06:30
Show Gist options
  • Save tzarskyz/5279770 to your computer and use it in GitHub Desktop.
Save tzarskyz/5279770 to your computer and use it in GitHub Desktop.
#!/bin/bash
case $1 in
*_EDITMSG|*MERGE_MSG|*_TAGMSG )
/usr/local/bin/vim $1
;;
*.md )
/usr/local/bin/mmdc $1
;;
*.txt )
/usr/local/bin/mmdc $1
;;
* )
/usr/local/bin/subl -w $1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment