Skip to content

Instantly share code, notes, and snippets.

@snim2
Forked from ttscoff/editor.sh
Created April 2, 2013 00:32
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 snim2/5289001 to your computer and use it in GitHub Desktop.
Save snim2/5289001 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