Skip to main content

Tedshd's Dev note

Category: Mac Sublime-Text

Sublime - Command Line

# Sublime - Command Line in Mac OS X make a symlink ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl // sublimetext 3 ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl And Use it subl --help Usage: subl [arguments] [files] edit the given files or: subl [arguments] [directories] open the given directories or: subl [arguments] - edit stdin Arguments: --project <project>: Load the given project --command <command>: Run the given command -n or --new-window: Open a new window -a or --add: Add folders to the current window -w or --wait: Wait for the files to be closed before returning -b or --background: Don't activate the application -s or --stay: Keep the application activated after closing the file -h or --help: Show help (this message) and exit -v or --version: Show version and exit --wait is implied if reading from stdin. ...