Skip to content

Instantly share code, notes, and snippets.

@romantomjak
Created January 15, 2018 20:00
Show Gist options
  • Save romantomjak/c5ec7a8658ce8a5355f1275fdc214476 to your computer and use it in GitHub Desktop.
Save romantomjak/c5ec7a8658ce8a5355f1275fdc214476 to your computer and use it in GitHub Desktop.
Bash alias for Sublime Text 3

Open or create ~/.bash_profile and add the following lines:

# Sublime
alias sublime='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'

This will allow you to type sublime in the Terminal to open Sublime Text 3.

To open files with Sublime type the following command:

sublime ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment