![]() 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 □ Git is a commonly used version control system that has a command-line. bash_profile, you may prefer put this line at the end of the file): export PATH=$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin Sublime Text is a popular, cross-platform text editor that is useful for editing. Once this file open, add the following line wherever you want (if you have a complex. If you want to work at the end of the line, is the regex character for end of line. If you ommit it could find a that was not at the beginning of the line. If the file doesn’t exist, it is okay, we can create an empty one where we will add our instruction. It would be better to begin the find expression with which is the regex character for beginning of line, Thus. 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. 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. ![]() 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |