2/24/2023 0 Comments Change git default text editor![]() ![]() ![]() $ git config -global code.editor " -n -w" gitconfig file from the terminal, we can use the following command: NOTE: If you used a different method, purposefully located Sublime Text 3 in a different directory, or otherwise lack a script or alias named subl in the /usr/bin/ directory, you will need to modify the terminal command appropriately, replacing subl with the path to Sublime Text on your machine, or the suitably-named alias you have chosen. ![]() If you used one of the methods above, you should now have a bash script or alias named subl in your /usr/bin/ directory which allows you to refer to Sublime Text as subl from the terminal. Installing Sublime Text 3 (beta) on Linux Mint Ubuntu.Installing Sublime Text 2 on Linux Mint/Ubuntu.For additional help on this, refer to my previous posts: Installing Sublime Text 2, or installing the beta release of Sublime Text 3 is not too challenging either, but again, to this point neither Linux Mint nor Ubuntu offer Sublime as part of the Synaptic Package Manager for either distro. Also, there are some non-obvious flags which need to be set as part of the configuration, or Sublime Text will not work properly as the Git editor. However, given that there is not, presently, a standard installation directory for Sublime Text, we first need to know where to point our. gitconfig file with a path to sublime text. Really, we're still simply setting up the. Setting up Sublime Text 2 (or the new Beta Release of version 3) as the default editor used by Git is not overly challenging, but not necessarily obvious either. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |