![]() Hopefully you found this post helpful, if you have any questions you can find me on Twitter. Under Settings, from the left-hand side look for Profiles, click on Add New. The Windows Terminal only knows about paths from Windows' perspective, so if you try to put in the home directory path directly it won't work: Launch the Windows Terminal, and click on the Drop-down menu and choose Settings. I've only tested this with WSL2 but I think it's the same for WSL1 NOTE: Setting a non-network path won't work Now when you launch WSL in the terminal it will start in good old ~ "startingDirectory" : "//wsl$/Ubuntu-18.04/home/wes/" Windows Terminal is a terminal shell for all your shells, including WSL, Powershell, Azure Cloud Shell and even good old cmd. Once finished the next steps will be to configure our windows terminal to take our user experience to a new level. Once in the settings json file find the WSL entry and set the startingDirectory to the network path of your WSL home directory: " , To fix it you need to modify the settings.json file of Windows Terminal (which you can open with keyboard shotrcut: Ctrl + ,). ![]() You can customize the Oh My Posh themes if desired. Replacing with your own Windows username. If you are like me you want it to start in your linux home directory /home/wes not your Windows home folder. profile path, replace with the path: /mnt/c/Users/.![]() A sample section that I used to add the WSL Ubuntu terminal is below. I wanted to give the new Windows Terminal a go and the first thing I noticed is that when I open WSL in windows terminal it defaults to my home folder on Windows /mnt/c/Users/wes. One of the last steps involved in installing and using the Windows Terminal is the modification of the PROFILES.JSON file to include the information that will allow you to add additional tabs for terminals that you want to run. #Windows terminal wsl profile windows 10Now that Windows 10 Slow Ring builds have WSL2 I've been doing more dev work on my Windows computer ( VS Code Remote WSL is really good y'all). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |