Skip to content

Instantly share code, notes, and snippets.

@guillermo
Forked from ttscoff/editor.sh
Last active December 15, 2015 14:59
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 guillermo/5278952 to your computer and use it in GitHub Desktop.
Save guillermo/5278952 to your computer and use it in GitHub Desktop.
#!/bin/bash
case $1 in
*_EDITMSG|*MERGE_MSG|*_TAGMSG )
/usr/local/bin/vim $1
;;
*.md|*.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