automatically open the current directory that you are if no file/directory is specified after subl / s.shorten the shortcut to just s (which is somewhat shorter than subl).I use a BASH function to take this a step further with the following benefits: To open a file and folder in Sublime respectively. Then before you start using it properly, I would suggest taking a look at the help text first, which explains it's usage: subl -h Ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' $HOME/bin/subl If that doesn't work, create a bin folder in your home directory (if one does not already exist), add it to your PATH variable and create a soft link to that file). most people): ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' /usr/local/bin/subl Installing Sublime Text on Ubuntu/Debian Running Ubuntu or its derivatives means you can use the APT package manager to install programs, and that's what we'll use to install Sublime Text too. If you do this you won't have to update this every time sublime updates.įor users running BASH (i.e. The best & safest way to do this is to create a symbolic link from the Sublime executable file (subl) to a folder already in your $PATH (e.g. I'm using the fish shell with the 'Oh my fish' Add-on (I have also added the sublime add- on). Sublime does open (with a empty new document) and I cannot see the folder in the side bar.īTW. All your paths are relative to Windows, not WSL, because it's a Windows application. ago You are sending sublime, in windows, the command to open. Thus to open a directory I should be able to use the followingīut that does not work for me. There, opening test.txt will open Sublime in \wsl\Ubuntu-18.04\home\test.txt deleted 4 yr.To the terminal when a file is closed (only relevant if waiting for a file).įilenames may be given a :line or :line:column suffix to open at a specific h or -help: Show help (this message) and exit s or -stay: Keep the application activated after closing the file b or -background: Don't activate the application w or -wait: Wait for the files to be closed before returning once complete installation Ctrl+Shift+P and search for Terminus init then it will open terminal. a or -add: Add folders to the current window how to open terminal in sublime text ubuntu > open sublime text 3 editor > Ctrl+Shift+P <- it will open package manager > Type install package and Select it.The help text show the following: Sublime Text build 3059 I can launch sublime from the command line using the subl command. I'm trying to open a directory in sublime Text 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |