Terminus is heavily inspired by TerminalView another Sublime Text package that adds a terminal to a view. What I love about Terminus is you can add a toggleable panel or a view. Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as.
Setup
Some operating systems and installation methods will require a configuration change to make subl
available on the PATH
.
Windows
On Windows, the command line helper is subl.exe
. To use this from the Command Prompt or Powershell, the Sublime Text installation folder needs to be added to the Path
environment variable:
Windows 10
Show instructions for: Windows 8, Windows 7- Open the Start Menu and type environ
- Select the item Edit the system environment variables
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Path
environment variable in the appropriate section:- For the current user, select
Path
in the User variables for {username} section - For all users, select
Path
in the System variables section
- For the current user, select
- Click the New button and add an entry with the Sublime Text installation directory
- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Windows 8
Open Sublime From Terminal
Show instructions for: Windows 10, Windows 7- Press the Windows Key and type environ
- Select the item Edit the system environment variables
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Path
environment variable in the appropriate section:- For the current user, select
Path
in the User variables for {username} section - For all users, select
Path
in the System variables section
- For the current user, select
- In the Variable value input, add an entry with the Sublime Text installation directory. If there is an existing value, add a
;
before the Sublime Text directory.- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Windows 7
Show instructions for: Windows 10, Windows 8- Open the Start Menu
- Right-click on Computer and select Properties
- Click on Advanced System Settings in the left-hand sidebar
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Path
environment variable in the appropriate section:- For the current user, select
Path
in the User variables for {username} section - For all users, select
Path
in the System variables section
- For the current user, select
- In the Variable value input, add an entry with the Sublime Text installation directory. If there is an existing value, add a
;
before the Sublime Text directory.- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Sublime Text Msys2
Mac
To use subl, the Sublime Text bin folder needs to be added to the path. For a typical installation of Sublime Text, this will be located at /Applications/Sublime Text.app/Contents/SharedSupport/bin.
Bash
If using Bash, the default before macOS 10.15, the following command will add the bin folder to the PATH
environment variable:
Zsh
If using Zsh, the default starting with macOS 10.15, the following command will add the bin folder to the PATH
environment variable:
Linux
If Sublime Text is installed via one of the Linux Package Manager Repositories or a package, a subl symlink will automatically be installed into the /usr/bin/ directory.
If installing from a tarball, the sublime_text executable should be symlinked to subl, with a command such as:
The exact details of the symlink command will depend on the installation location. Most default PATH
environment variable values should contain /usr/local/bin, so no further commands should be necessary.
Glue is a plugin that provides an interface to your shell from the Sublime Text editor. It features command entry within the Sublime Text editor window, standard output display in an editor view, and it works with most system utilities. This includes any compiled or interpreted source that you develop which effectively allows you to create Sublime Text extensions in any programming language that your system supports.
Here’s how you get started with it.
Install Glue in Your Sublime Text Editor
Glue works in Sublime Text versions 2 and 3 and these install instructions apply for either version.
Install with Package Control
If you are using Will Bond’s Package Control, the install is simple. Open the Command Palette in your Sublime Text editor with the menus Tools > Command Palette
and then type install
in the text entry field. Select the option Package Control - Install Package
. Next, type ‘glue’ in the text input box and select the ‘Glue’ plugin option that is displayed in the Command Palette. The install automatically takes place. You will see a confirmation in the status bar at the bottom of the editor window.
Install with Git
Open your Packages
directory with the Sublime Text menu items Preferences > Browse Packages
. Then git clone the Glue repository as a new directory named ‘Glue’ in your Packages directory with the following command:
Install Manually
If you like to do things the good ole’ fashion way, download the source repository from GitHub (tar.gz | zip). Decompress the archive and rename it “Glue”.
Then, open your Sublime Text Packages directory using the Preferences > Browse Packages
menu items and move the entire Glue
directory into your Packages directory.

Confirm Your Install
Glue should automatically load in your editor after you install with any of the above approaches. You can confirm that it is installed by opening a project, right clicking in the sidebar and selecting the menu item Open Glue Terminal
.
Confirm Your PATH
The next step is to confirm that your PATH is properly set in Glue. Glue assigns a default user PATH from your environment PATH variable. In general the PATH is correct, but on some installs it may require a bit of assistance.
First, check the PATH that Glue is using by entering the following command on the Glue command line:
This will display a colon-delimited PATH string for Unix/Linux users and a semicolon delimited PATH string for Windows users. If the PATH doesn’t match your existing system PATH, you can set a new Glue PATH string. This does not modify your existing system PATH.
At some point Visual Studio Code (VSCode) asked to update golang tools / settings, and it enabled linting. I searched on Google, but I found only results about setting the linter or disabling specific warnings. Go visual-studio-code. Improve this question. Follow edited Dec 3 '20 at 11:20. VS Code CloudFormation Linter uses cfn-lint to lint your CloudFormation templates. Uses cfn-lint to parse the template and show problems with it. Uses pydot to preview the template as a graph of resources. Requires cfn-lint to be installed: pip install cfn-lint. Linters extensions for Visual Studio Code on marketplace.visualstudio.com. Visual studio code linter. Once you’ve nailed catching accessibility issues in your source code, try expanding your test coverage by testing in the browser with the free axe browser extension. Once the plugin is installed, axe Linter installs and configures itself automatically. This can sometimes take a few minutes.
Traktor pro software for mac. To do this, open the Glue user settings JSON file by navigating to Preferences > Package Settings > Glue > Glue Settings - User
. If you have not already entered settings in this file, it will appear as an empty buffer in Sublime Text. Create a JSON file with the following syntax:
Unix (including Mac OSX) and Linux users should enter a colon delimited string. Windows users should include semicolons as delimiters.
Here is an example for Unix/Linux users:
and for Windows users:
Avia for mac. Windows users should escape their backward slashes as shown above.
Use Glue
Glue works with many of your favorite system utilities and allows you to extend what you can do inside the Sublime Text editor window. Here are a few examples:

Glue + grep
Glue + git
Glue + cURL
Glue + Your Own Scripts
Glue Commands
Glue includes its own set of built in commands that let you navigate around your directory structure, manipulate the editor (e.g. create new buffers, open files by wildcard), and perform other useful tasks:
Command | Description |
---|---|
cd | change directory |
exit | exit the Glue terminal |
glue browse | open URL or local project file in default browser |
glue clear | clear text in the Glue view |
glue finder | reveal current directory (default) or optional path in finder |
glue help | view help documentation in Glue view |
glue localhost | open default web browser to local server |
glue new | open a new Sublime Text buffer |
glue open | open one or more project files by filepath |
glue path | display the system PATH setting that is used by Glue |
glue user | display alphabetized list of your Glue user extensions |
glue wco | open one or more files by wildcard pattern |
Extend Glue
You can extend the built-in Glue commands with aliases that support system utilities, your own compiled executables, shell scripts, and source from any scripting language that is supported on your machine.
These Glue aliases can be called from the command line with the syntax:
They are incredibly simple to develop and require absolutely no programming knowledge (but can be hooked into anything that you develop with the capability to process data from the standard input stream).
Here are the steps to create your own extensions:
Create the Glue-Commands Directory
Create a Glue-Commands
directory inside your Sublime Text Packages
directory. You can open your Sublime Text Packages directory with the menu item Preferences > Browse Packages
.
How To Get Terminal In Sublime
Create a glue.json
File
Create a glue.json
file inside the Glue-Commands directory.
Define Your Glue Extensions
Commands are defined in the glue.json
file with a simple mapping of JSON key:value pairs using the following syntax
You have the option to include replacement tags in your system command string that allow you to pass command line arguments, the text in your clipboard, or the current working directory path to the aliased command:

Glue Extension Replacement Tags
Tag | Description |
---|---|
{{args}} | additional arguments that you include on the command line |
{{clipboard}} | the contents of the clipboard |
{{pwd}} | the working directory path |
JavaScript Minifier Extension Example
Here is an example that will take you through each of these steps to create a command that will minify and obfuscate a JavaScript file, and then save it in the same directory with the new path <filename>-min.js
:
If you are following along, you can download YUICompressor from the GitHub repository. You will need to have Java version 1.4+ installed to use it. Unpack the repository and move the yuicompressor-2.4.8.jar file to a directory for safe keeping (you will run it from this directory).
Next, create a shell script named minijs.sh. Include the following script and modify the YUI_PATH variable with the actual path to your YUICompressor jar file:
JavaScript Minifier Shell Script
Next, create a Glue extension that will serve as an alias for the call to this shell script when you use the glue minijs
command. We’ll include the {{args}} template tag so that we can pass filepath arguments to our script. Insert the following in your glue.json
file that you generated above:
To use your new Sublime Text feature, launch Glue in your editor and minify JS files in the working directory with a command like this:
The minified file is saved as awesome-min.js
in the same directory.
Terminal In Sublime Mac
You can use the same technique with any compiled application or interpreted script that accepts the standard input stream and returns the data to be displayed for the user in the standard output stream. Glue provides the interface with your shell to take care of the rest.
Sublime Hide Menu
Learn More
The Glue documentation is available here.
Issue Reporting
Open Terminal In Sublime Text
If you come across a bug in the plugin, please report it on the GitHub repository.
