In the Terminal app on your Mac invoke a command-line editor by typing the name of the editor followed by a space and then the name of the file you want to open.
Set default text editor mac terminal. Then go into command line and type. Given that when you open it the Macs default settings will always lead to it opening on TextEdit. Just answered my own question with the help of the above comments.
However if you have installed a different program and subsequently set it to be the default handler for text files then using. From there locate Video Player and click on the drop-down menu and use it to change the default video player. Add the following to your bashrc file.
Export EDITORApplicationsTextEditappContentsMacOSTextEdit or just type the following command into your Terminal. If you want to create a new file type the editor name followed by a space and the pathname of the file. This last option will work similar to the -e flag except that instead of specifically targeting TextEdit the system will open the default text handler on your system.
Terminal is a Mac app a terminal emulator that runs whatever software you want it to in a text window. As the default editor with the -t flag. Set default text editor mac terminal.
Change it by clicking on the System tab in Preferred Applications One in the System tab area click the Text Editor drop. Right Click the text file you wish to open and choose Properties. Git config --global coreeditor edit -w.
For a fresh OS X installation TextEdit is this handler. How to do this. There isnt a default text editor in Terminal.