1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 20:00:07 +00:00
ohmyzsh/plugins/sublime/README.md
Peter Han 073ea01cce Create an alias to open up sublime project (#5258)
* Adding an alias to open up the sublime project

* README update for stp command
2016-08-14 18:00:19 -07:00

948 B

sublime

Plugin for Sublime Text, a cross platform text and code editor, available for Linux, Mac OS X, and Windows.

Requirements

Usage

  • If st command is called without an argument, launch Sublime Text

  • If st is passed a directory, cd to it and open it in Sublime Text

  • If st is passed a file, open it in Sublime Text

  • If stt command is called, it is equivalent to st ., opening the current folder in Sublime Text

  • If sst command is called, it is like sudo st, opening the file or folder in Sublime Text. Useful for editing system protected files.

  • If stp command is called, it find a .sublime-project file by traversing up the directory structure. If there is no .sublime-project file, but if the current folder is a Git repo, opens up the root directory of the repo. If the current folder is not a Git repo, then opens up the current directory.