Plugin for Sublime Text, a cross platform text and code editor, available for Linux, macOS, and Windows.
To use the plugin, add
sublime to the plugins array of your zshrc file:
Sublime Text has to be installed to use the plugin.
The plugin defines several aliases, such as:
st: opens Sublime Text. If passed a file or directory, Sublime Text will open it.
stt: open Sublime Text on the current directory.
sstwill open Sublime Text with root permissions, so that you can modify any file or directory that you pass it. Useful to edit system files.
There are also a few functions available:
stpalias): if called, the function will search for a
.sublime-projectfile on the current directory or its parents, until it finds none.
If there is no
.sublime-projectfile but the current folder is in a Git repository, it will open Sublime Text on the root directory of the repository.
If there is no Git repository, it will then open Sublime Text on the current directory.
stnalias): if called without an argument, create a stub
.sublime-projectfile in the current working directory, if one does not already exist. If passed a directory, create a stub
.sublime-projectfile in it.