As I’m working in the OSX Terminal more and more these days, I'm always on the lookout for time saving shortcuts.
- 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 an EDITOR for unix tools, such as git and subversion. The first task is to make a symlink to subl.
- Buy Sublime Text Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use. Email. This license is for me Personal license keys are only available for individuals, if you are purchasing for a business or organization, please click below.
Sublime For Mac
In this video I show you How to Install and Use Sublime Text on MacOS. In this video I show you How to Install and Use Sublime Text on MacOS.
A really useful tip that I picked up recently from Zander Martineau is how to open up Sublime Text straight from the Terminal. This is done by hooking into a CLI utility that Sublime provides called subl.
The following instructions are based largely on the original gist on Github by Artero, so credit for this solution should be directed to them and not myself.
It’s a slightly different installation depending on whether you’re using Sublime Text 2 or 3, so I’ll split the two out below in the installaton; simply refer to the instructions that are relevant to you.
Installation
Assuming you installed Sublime in the Applications folder, the following command should open up the editor when you type it into the Terminal:
For Sublime Text 2:
open /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl
For Sublime Text 3:
open /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
If that worked, you're good to go.
You now need to create a symlink called
sublime
which links the subl CLI to a folder where your system usually looks to execute these binaries. To do this, type in:For Sublime Text 2:
ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
For Sublime Text 3:
ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' /usr/local/bin/sublime
Check your profile
The final thing you need to do, is to check that your system profile is looking in the right place to see the symlink you have just created.
Enter the following command into your Terminal:
open ~/.bash_profile
Note that in some cases the profile may be called
~/.profile
.This should open up your profile in a text editor. What you’re looking for is a line towards the top of the file that starts with
export PATH=
. Your PATH
contains all the directories that will be checked for executable binaries when you type a command into your Terminal. Since we created a symlink in the /usr/local/bin
folder, we want to make sure that that folder is being checked too.Hopefully, you’ll be able to see something similar to this:
export PATH=/usr/local/bin:(..)
If not, simply add this folder to your
PATH
and save the file.Note: The
(..)
in this example represents other folders that would be listed on the same line and separated by a colon.If you don't already have a
PATH
set in your bash_profile you can type the following on a new line:export PATH=/usr/local/bin:$PATH
Finally, if you did have to add
/usr/local/bin
to your PATH
, run the following command before continuing:source ~/.bash_profile
This will reload your .bash_profile with the newly added directory in your
PATH
.Test it works!
In your Terminal, the following commands should now work:
sublime .
– opens the current directory in Sublimesublime filename
– opens a file wherefilename
is the file to be openedsublime foldername
– opens a folder wherefoldername
is the folder to be opened
And there you have it – you can now open any file or folder in Sublime straight from the Terminal.
Thanks and credit for this great solution again goes to Artero. If you have any problems getting it working, let me know and I’ll do my best to help you out.
Article posted on the 17th February 2014
Unlike the software developed for Windows system, most of the applications installed in Mac OS X generally can be removed with relative ease. Sublime Text is a third party application that provides additional functionality to OS X system and enjoys a popularity among Mac users. However, instead of installing it by dragging its icon to the Application folder, uninstalling Sublime Text may need you to do more than a simple drag-and-drop to the Trash.
Download Mac App RemoverWhen installed, Sublime Text creates files in several locations. Generally, its additional files, such as preference files and application support files, still remains on the hard drive after you delete Sublime Text from the Application folder, in case that the next time you decide to reinstall it, the settings of this program still be kept. But if you are trying to uninstall Sublime Text in full and free up your disk space, removing all its components is highly necessary. Continue reading this article to learn about the proper methods for uninstalling Sublime Text.
Manually uninstall Sublime Text step by step:
![Text Text](https://www.maketecheasier.com/assets/uploads/2014/03/codemac-sublimetext.jpg)
Most applications in Mac OS X are bundles that contain all, or at least most, of the files needed to run the application, that is to say, they are self-contained. Thus, different from the program uninstall method of using the control panel in Windows, Mac users can easily drag any unwanted application to the Trash and then the removal process is started. Despite that, you should also be aware that removing an unbundled application by moving it into the Trash leave behind some of its components on your Mac. To fully get rid of Sublime Text from your Mac, you can manually follow these steps:
1. Terminate Sublime Text process(es) via Activity Monitor
Before uninstalling Sublime Text, you’d better quit this application and end all its processes. If Sublime Text is frozen, you can press Cmd +Opt + Esc, select Sublime Text in the pop-up windows and click Force Quit to quit this program (this shortcut for force quit works for the application that appears but not for its hidden processes).
Open Activity Monitor in the Utilities folder in Launchpad, and select All Processes on the drop-down menu at the top of the window. Select the process(es) associated with Sublime Text in the list, click Quit Process icon in the left corner of the window, and click Quit in the pop-up dialog box (if that doesn’t work, then try Force Quit).
2. Delete Sublime Text application using the Trash
First of all, make sure to log into your Mac with an administrator account, or you will be asked for a password when you try to delete something.
Open the Applications folder in the Finder (if it doesn’t appear in the sidebar, go to the Menu Bar, open the “Go” menu, and select Applications in the list), search for Sublime Text application by typing its name in the search field, and then drag it to the Trash (in the dock) to begin the uninstall process. Alternatively you can also click on the Sublime Text icon/folder and move it to the Trash by pressing Cmd + Del or choosing the File and Move to Trash commands.
For the applications that are installed from the App Store, you can simply go to the Launchpad, search for the application, click and hold its icon with your mouse button (or hold down the Option key), then the icon will wiggle and show the “X” in its left upper corner. Click the “X” and click Delete in the confirmation dialog.
Download Mac App Remover3. Remove all components related to Sublime Text in Finder
Though Sublime Text has been deleted to the Trash, its lingering files, logs, caches and other miscellaneous contents may stay on the hard disk. For complete removal of Sublime Text, you can manually detect and clean out all components associated with this application. You can search for the relevant names using Spotlight. Those preference files of Sublime Text can be found in the Preferences folder within your user’s library folder (~/Library/Preferences) or the system-wide Library located at the root of the system volume (/Library/Preferences/), while the support files are located in '~/Library/Application Support/' or '/Library/Application Support/'.
Open the Finder, go to the Menu Bar, open the “Go” menu, select the entry:|Go to Folder.. and then enter the path of the Application Support folder:~/Library
Search for any files or folders with the program’s name or developer’s name in the ~/Library/Preferences/, ~/Library/Application Support/ and ~/Library/Caches/ folders. Right click on those items and click Move to Trash to delete them.
Meanwhile, search for the following locations to delete associated items:
- /Library/Preferences/
- /Library/Application Support/
- /Library/Caches/
![Sublime Text Mac Sublime Text Mac](https://static.filehorse.com/screenshots/developer-tools/sublime-text-screenshot-01.png)
Besides, there may be some kernel extensions or hidden files that are not obvious to find. In that case, you can do a Google search about the components for Sublime Text. Usually kernel extensions are located in in /System/Library/Extensions and end with the extension .kext, while hidden files are mostly located in your home folder. You can use Terminal (inside Applications/Utilities) to list the contents of the directory in question and delete the offending item.
4. Empty the Trash to fully remove Sublime Text
If you are determined to delete Sublime Text permanently, the last thing you need to do is emptying the Trash. To completely empty your trash can, you can right click on the Trash in the dock and choose Empty Trash, or simply choose Empty Trash under the Finder menu (Notice: you can not undo this act, so make sure that you haven’t mistakenly deleted anything before doing this act. If you change your mind, before emptying the Trash, you can right click on the items in the Trash and choose Put Back in the list). In case you cannot empty the Trash, reboot your Mac.
Download Mac App RemoverTips for the app with default uninstall utility:
You may not notice that, there are a few of Mac applications that come with dedicated uninstallation programs. Though the method mentioned above can solve the most app uninstall problems, you can still go for its installation disk or the application folder or package to check if the app has its own uninstaller first. If so, just run such an app and follow the prompts to uninstall properly. After that, search for related files to make sure if the app and its additional files are fully deleted from your Mac.
Automatically uninstall Sublime Text with MacRemover (recommended):
No doubt that uninstalling programs in Mac system has been much simpler than in Windows system. But it still may seem a little tedious and time-consuming for those OS X beginners to manually remove Sublime Text and totally clean out all its remnants. Why not try an easier and faster way to thoroughly remove it?
If you intend to save your time and energy in uninstalling Sublime Text, or you encounter some specific problems in deleting it to the Trash, or even you are not sure which files or folders belong to Sublime Text, you can turn to a professional third-party uninstaller to resolve troubles. Here MacRemover is recommended for you to accomplish Sublime Text uninstall within three simple steps. Retrieve administrator password mac. MacRemover is a lite but powerful uninstaller utility that helps you thoroughly remove unwanted, corrupted or incompatible apps from your Mac. Now let’s see how it works to complete Sublime Text removal task.
1. Download MacRemover and install it by dragging its icon to the application folder.
2. Launch MacRemover in the dock or Launchpad, select Sublime Text appearing on the interface, and click Run Analysis button to proceed.
Best Text Editors Windows
3. Review Sublime Text files or folders, click Complete Uninstall button and then click Yes in the pup-up dialog box to confirm Sublime Text removal.
The whole uninstall process may takes even less than one minute to finish, and then all items associated with Sublime Text has been successfully removed from your Mac!
Benefits of using MacRemover:
MacRemover has a friendly and simply interface and even the first-time users can easily operate any unwanted program uninstallation. With its unique Smart Analytic System, MacRemover is capable of quickly locating every associated components of Sublime Text and safely deleting them within a few clicks. Thoroughly uninstalling Sublime Text from your mac with MacRemover becomes incredibly straightforward and speedy, right? You don’t need to check the Library or manually remove its additional files. Actually, all you need to do is a select-and-delete move. As MacRemover comes in handy to all those who want to get rid of any unwanted programs without any hassle, you’re welcome to download it and enjoy the excellent user experience right now!
This article provides you two methods (both manually and automatically) to properly and quickly uninstall Sublime Text, and either of them works for most of the apps on your Mac. If you confront any difficulty in uninstalling any unwanted application/software, don’t hesitate to apply this automatic tool and resolve your troubles.
Download Mac App Remover