Sublime Text 3 and Terminal prompt for OS X Mavericks?

前端 未结 7 1059
半阙折子戏
半阙折子戏 2020-12-22 23:18

I\'m trying to set-up Sublime Text 3 on OS X Mavericks and getting levels of frustration.

I\'ve followed all of the usual suspects in regards to installation and se

7条回答
  •  心在旅途
    2020-12-22 23:42

    Mavericks does not ship with a ~/bin directory, but found I ran into trouble trying to install the subl command in any of the low-level system bin directories. I found the following solution worked neatly:

    Create a ~/bin directory for your user:

    mkdir ~/bin
    

    Add the subl command as per the Sublime Text documentation:

    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
    

    Open /etc/paths in your (second) favourite text editor:

    sudo vi /etc/paths
    

    Add the active user's ~/bin folder. Here's how mine looked after I'd added ~/bin:

    ~/bin
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    

提交回复
热议问题