title: Change the default editor for files opened in the terminal? (e.g. set it to TextEdit/Coda/Textmate)
body: <p>Is there a way to make files opened for editing in the terminal open in Textedit instead? </p>
  
  <p>For example, where a command might open a file for editing (like <code>git commit</code>), instead of opening that file in vim or emacs, it would open in Textedit (or perhaps another text editing application of your choosing, such as Coda or Sublime). </p>
  
  <p>And as a bonus question, is there any way to specifically configure git to automatically open the file created after running <code>git commit</code> in an editor from the applications directory?</p>