Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Open the Hyper terminal on your computer.
  2. Navigate to the directory where Sublime Text is installed. For example, if you have installed Sublime Text in the Applications folder, you can navigate to it by typing cd /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/ in the terminal and pressing enter.
  3. Once you are in the bin folder, type subl and press enter. This will launch Sublime Text.

Alternatively, you can add Sublime Text to your PATH environment variable so that you can launch it from anywhere in the terminal. To do this, follow these steps:

  1. Open your terminal and type nano ~/.bash_profile and press enter.
  2. This will open the .bash_profile file in the nano text editor. Scroll down to the end of the file and add the following line: export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin/:$PATH"
  3. Save the file by pressing Ctrl + X, then Y, then Enter.
  4. Close and reopen the terminal for the changes to take effect.
  5. To launch Sublime Text from anywhere in the terminal, simply type subl and press enter.