Skip to content

Instantly share code, notes, and snippets.

@maztch
Created June 8, 2016 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maztch/69f707474754f25d026b638404f22477 to your computer and use it in GitHub Desktop.
Save maztch/69f707474754f25d026b638404f22477 to your computer and use it in GitHub Desktop.
call sublime from console

Make an alias to sublime bin subl. Edit file

~/.bash_profile

add

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

restart bash if needed

source ~/.bash_profile

now, on a console you can open sublime and add current folder:

sublime .

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