![]() ![]() If you are used to install software through script, this manipulation is probably trivial for you. To make sure of it, you can run the command subl -v to display your version of the command line installed □ Conclusion Now close your opened terminal and reopen them, or simply run the command source ~./bash_profile, and you will be able to run the command subl. If you haven’t installed Sublime Text in you Applications folder, change the path accordingly to the location where you put it, and tell me why you did so in the comments, I am curious □ ![]() bash_profile, you may prefer put this line at the end of the file): export PATH=$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin Once this file open, add the following line wherever you want (if you have a complex. If the file doesn’t exist, it is okay, we can create an empty one where we will add our instruction. To to so, you can type the command open ~/.bash_profile, for example. bash_profile which is normally in you HOME folder. So now, let’s focus on the main goal, being able to call the command subl from your terminal. If this is not already the case for you, then, follow this link, download and install it on your computer.Īt this point, you should be able to open Sublime Text without the terminal □ The first step to have the command subl accessible is to install Sublime Text, obviously. In the console that appears, enter the following command and press enter. ![]() To do this, select View > Show Console from the menu or press the keyboard shortcut associated with it, Ctrl+. You can also add the option -n to open it in a new windows, or the option -h to display the help and have all the description of all the possibilities available to you. Lacking any documentation, the next easiest thing to do would be to ask Sublime directly. Once setup up, you can use command line like subl my_file_or_folder to open a file or a folder in Sublime Text. The command sublįor those who don’t know, Sublime Text has a shortcut, a command line tool named subl, which allow you to use summon sublime text though your terminal. Sublime Text 2 ln -sv '/Applications/Sublime Text 2. Last week, I had to reinstall all the tools I use on a new computer, since the previous one passed away ☠️Īnd since I use Sublime Text as a default text editor, (please, no debate over which text editor is the best in the comment □), I had to reinstall it and make it easily accessible through the terminal. In order to launch sublime from command line you only need to create a symlink /usr/local/bin/subl point to sublime app, to do so run the following in the command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |