What Is Default Text Editor For Bash In Mac

  1. What Is The Default Text Editor For Mac
  2. Text Editor Download
  3. What Is Default Text Editor For Bash In Mac
Text editor online
Active5 years, 5 months ago

Possible Duplicate:
Default editor for files without file name extension in Mac OS X

What Is The Default Text Editor For Mac

How do I open a file my script generated with the default GUI editor with bash? On OS X there is the command open, but as far as I know that doesn't exist on linux.What is a good cross-platform alternative?

The default is currently TextEdit. I want to change it to be MacVim.

  • Best Text Editors for macOS. Note: In this article, we are focusing on the best text editors for coding but if you are looking for a text editor for your writing purposes, you can check out our article on the best writing apps for Mac. Sublime Text 3. Sublime Text is probably one of the most famous text editors available for Mac and for all the right reasons.
  • If you want to use nano as your editor for all things command line, add this to your bash_profile: export EDITOR=/usr/bin/nano. This is assuming you're using the system nano.

I know how to set files that end with a certain extension, such as .txt, to always open with MacVim (I do this by selecting a file with the extension .txt, pressing command-i, and selecting Open with: Application, Change All...), but I also want text files without extensions, such as README, to open with MacVim by default.

Text Editor Download

Community
ma11hew28ma11hew28

marked as duplicate by Daniel Beck, Ivo FlipseJan 21 '11 at 18:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Text editor download

1 Answer

You can't because it can't determine enough information about the file (other then it lacks an extension) to reliably alter that.

Josh KJosh KDefault
11.4k7 gold badges37 silver badges56 bronze badges

What Is Default Text Editor For Bash In Mac

Not the answer you're looking for? Browse other questions tagged macos or ask your own question.