![]() I've successfully omitted commandline in favor of source startingDirectory: // Make changes here to the cmd.exe profile. However, seems commandline:wsl doesn't work with startingDirectory. This little bitty value is made possible by setting a default distro: "The default WSL distribution is the one that runs when you run wsl on a command line:" I've had success with changing just the last number for each customization.Ĭommandline - From within Bravo Yeung's answer is a link to a sample settings.json file: "commandline": "wsl ~" So, the question could be re-interpreted as- What is the minimum required change to the default settings.json to point to an application of your choosing? (which is what got me here) The premise of the question was fouled by the mistake with the GUID, as the OP says the sample code was actually correct. Then replace the contents of the new profile-withIcons.json file below with the previous settings.Īfter finishing the contents of the folder is like this: I put some 32x32 PNG in this folder, and then in profile.json I can reference the image resource with the path starting with ms-appdata://. You can add icons for Tab to this location: %LOCALAPPDATA%\packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState ![]() The complete setting file (profile.json) which can be obtained here. Near the word "schemes" in profile.json file, you need to update below: "schemes": [ Then inside the word "profiles" in profile.json file, add below snippet. ![]() Right-click on the Windows 10 or 11 start menu and select Terminal (Admin) in Windows 11. Below I entered a few common commands such as ps, touch, ls etc., as shown below.Ĭlick "Settings" in right top corner of above image, the file profile.json file will be opened. Here we are using Powershell, however, you can use the Command prompt as well the given steps in this article will be the same for both. Then enter the following command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxĪfter the command is completed, you can execute the Linux command in the built-out Terminal.įirst enter ubuntu in cmd, take a little time to start Ubuntu, set the username and password. Open another PowerShell window with "Run as Administrator". Of course, you want to experience other versions of Linux, as well as Debian:Īfter installing the WSL version of Linux, you also need to enable WSL permissions: This is actually WSL (Windows Subsystem for Linux). Search "Ubuntu" in the Microsoft store, then buy and install.
0 Comments
Leave a Reply. |