Which Text Editor To Use For Bash In Mac

You can add text to the nano editor simply by typing the contents directly into the editor. Saving the file, however, requires the use of a keyboard shortcut. To save a file in nano press ctrl and at the same time.

Active3 years, 11 months ago

I've modified my /var/root/.profile using nano (this is the only editor which works with root for some reason(. Ridiculous, I know))):

but when I try to open any text file using subl filename it's trying for a few seconds and then says:

If I do the same as regular user it works great!(Modified the ~/.profile instead of /var/root/.profile)

BTW, if I do this as root:

it says:

Which Text Editor To Use For Bash In Mac Terminal

Bash

What's wrong with my root user? Why I can use only nano editor as root? It drives me crazy!!!

Drew
DrewDrew
9633 gold badges24 silver badges50 bronze badges

1 Answer

If you're using Sublime Text 2, unless you manually changed the name of the .app file, the command should be:

Note the filename is Sublime Text 2.app, and also note that only double quotes are needed, not double surrounding single.

Which Text Editor To Use For Bash In Mac And Cheese

MattDMoMattDMo

Best Text Editor To Use

Not the answer you're looking for? Browse other questions tagged macostext-editorsrootsublime-text-3.profile or ask your own question.