Skip to content

Instantly share code, notes, and snippets.

@mikestone14
Last active July 11, 2018 22:52
Show Gist options
  • Select an option

  • Save mikestone14/11193365 to your computer and use it in GitHub Desktop.

Select an option

Save mikestone14/11193365 to your computer and use it in GitHub Desktop.

Revisions

  1. mikestone14 renamed this gist Apr 22, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. mikestone14 created this gist Apr 22, 2014.
    25 changes: 25 additions & 0 deletions Install Sublime Command Line Tool
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ### Install Sublime 'subl' Command Line Tool

    Add the following line to your .bash_profile

    ```bash
    export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
    ```

    This sets the location where you want Terminal to look for binaries on your machine.

    ##### Sublime 2
    ```bash
    ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl/usr/local/bin
    ```
    ##### Sublime 3
    ```bash
    ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl/usr/local/bin
    ```

    Set up Sublime as the default editor in your .bash_profile

    ```bash
    export EDITOR='subl -w'
    ```