2.1 Sublime Text Editor
Ge the Sublime editor here: Sublime Text
2.1.1 CLI
You don't need to alias Sublime. To call it from the command line:
sublime .
2.1.2 Package Control
Find Sublime packages here.
2.2 Atom Editor
Get the Atom Editor here: Atom
2.2.1 CLI
You don't need to alias Atom. To call it from the command line:
atom .
2.2.2 Atom Packages
Find Atom Packages here: [https://atom.io/packages]
2.3 Command Line Editors
Set an editor as the default editor in terminal
@ .bashrc
# Alias Atom Editor as global variable export EDITOR=/Applications/Atom.app/Contents/MacOS/Atom
Alias other Editors to access them quickly from the command line
@ .bashrc
# PHPStorm alias storm='open -a PhpStorm' # TextWrangler alias tw='open -a /Applications/TextWrangler.app'
2.3.1 Open command
Open in TextEditor (Apple default)
open -e /usr/local/etc/apache2/2.4/httpd.conf
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.