![]() ![]() user> TextEditor somefile.txt and other variations. its workspace), using default. Trying to find the Mac equivalent, as a guess, tried. Start Sublime Text opening a project 'myprj', specified on its command-line, using default.sublime-project located under that projects dir (say '/repo/myprj'), automatically re-opening the last open files of that project (i.e. I'm from Linux Land and normally use kwrite or gedit from a bash shell. This is handy if you need to traverse a few directories and cherry pick a number of files to be opened. I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. Subl -ab tutorial.html opens the file tutorial.html in the current window but keeps terminal in focus. I doubt it should be there, but it's generally a best practice on Unix systems to create a /bin to maintain extraneous executables that you'd like to use within your personal environment. The most basic usage is to open the current folder in Sublime Text 2. On Windows, the command line helper is subl.exe. 2 Answers Sorted by: 2 Yes simply create the /bin directory and then create the link. sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl This will then give you access to the bash command subl with a number of arguments. ![]() Once we've included that, we can press esc to exit insert mode and then :wq to save and exit. ![]() So we can add our alias there now, like this: alias subl'C:/Program\ Files/Sublime\ Text\ 3/sublimetext.exe'. Now you have access and can type into the prompt. To Install: Run the following line in your terminal. Then you need to press i to enter the insert mode. If you do a lot of work in bash, it's helpful to open up a file or entire folder in your editor right from the command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |