Export EDITORApplicationsTextEditappContentsMacOSTextEdit or just type the following command into your Terminal.
Set default text editor mac terminal. Given that when you open it the Macs default settings will always lead to it opening on TextEdit. Git will use this as well. Change the default editor for files opened in the terminal.
Heres how to do it. If you want to create a new file type the editor name followed by a space and the pathname of the file. Right Click the text file you wish to open and choose Properties.
For a fresh OS X installation TextEdit is this handler. However if you have installed a different program and subsequently set it to be the default handler for text files then using. Then go into command line and type.
Typically that emulator runs a shell like bash or zsh recently its zsh historically it was. To change this one of the ways to do this is to resort to change the default text editor by accessing the Get Info menu. Change it by clicking on the System tab in Preferred Applications One in the System tab area click the Text Editor drop.
Not a fan of Mates Pluma text editor. However the editor that gets opened is always Emacs. To switch to TextWrangler as the default for Git you must open TextWrangler click on TextWrangler in the tool bar and select install command line tools from the drop down.
Click Open With tab and choose the editor you want to use. First find the Multimedia tab in the Preferred Applications area and click on it with the mouse. Git config --global coreeditor edit -w.