From 6e7249fc4d2218d22cafeea4eb612090d38413c7 Mon Sep 17 00:00:00 2001 From: Matt Wojciakowski Date: Fri, 14 Jan 2022 14:41:26 -0800 Subject: [PATCH] Main > Live (#481) * Update dynamic-profiles.md (#438) * Update dynamic-profiles.md Create section for dynamic profile for `Developer Powershell for VS 2019` * Update dynamic-profiles.md Update name and remove `startingDirectory` * Update dynamic-profiles.md Explain a little better * Update VS version info in 3rd party (#462) * Update custom prompt tutorial w latest OMP steps (#467) * Add themes link * Bulk fix - Removing .localizationpriority (#469) * Testing image (#474) * Update new-tab-same-directory.md * Update new-tab-same-directory.md * Include note on how to save the directory of a pane (#473) * Add decimal value note for pane size Resolves https://github.com/MicrosoftDocs/terminal/issues/276 * Remove VS PowerShell and CMD for 3rd party ..these are now officially dynamic profiles.. so no longer need to be added as 3rd party as of Terminal v. 1.12. :) * Add faq for psreadline * Fix formatting * Remove space before code block * Remove code block * Fix link * startingDirectory path for WSL no longer requires prefix * Update custom-prompt-setup.md (#482) Co-authored-by: Shubham Gogna <36936863+shgogna@users.noreply.github.com> Co-authored-by: Alma Jenks Co-authored-by: Jason Howell <5067358+JasonWHowell@users.noreply.github.com> Co-authored-by: Schuyler Rosefield Co-authored-by: Sanam <31341013+sanamhub@users.noreply.github.com> --- TerminalDocs/troubleshooting.md | 12 +++++++++--- TerminalDocs/tutorials/custom-prompt-setup.md | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/TerminalDocs/troubleshooting.md b/TerminalDocs/troubleshooting.md index 109ddf24..996c7fc8 100644 --- a/TerminalDocs/troubleshooting.md +++ b/TerminalDocs/troubleshooting.md @@ -20,11 +20,17 @@ If you click on the "settings" button in the dropdown, the Terminal will attempt ## Set your WSL distribution to start in the home `~` directory when launched -By default, the `startingDirectory` of a profile is `%USERPROFILE%` (`C:\Users\`). This is a Windows path. For WSL, however, you may want to use the WSL home path instead. `startingDirectory` only accepts a Windows-style path, so setting it to start within a WSL distribution requires a prefix. +By default, the `startingDirectory` of a profile is `%USERPROFILE%` (`C:\Users\`). This is a Windows path. For WSL distributions, the file systems are now directly referenced, as of Windows Terminal [version 1.12.3472.0](https://github.com/microsoft/terminal/releases). You can use `/home/` to directly refer to your home folder. For example, the following setting will launch the "Ubuntu-20.04" distribution in its home file path: -Beginning in Windows 10 version 1903, the file systems of WSL distributions can be addressed using the `\\wsl$\` prefix. For any WSL distribution with the name `DistroName`, use `\\wsl$\DistroName` as a Windows path that points to the root of that distribution's file system. +```json +{ + "name": "Ubuntu-20.04", + "commandline" : "wsl -d Ubuntu-20.04", + "startingDirectory" : "/home/" +} +``` -For example, the following setting will launch the "Ubuntu-18.04" distribution in its home file path: +If you are using an earlier version of Windows Terminal, WSL may require using the `\\wsl$\` prefix when referring to a distribution's home path for the `startingDirectory` setting. For example, in earlier versions of Windows Terminal the following setting will launch the "Ubuntu-18.04" distribution in its home file path: ```json { diff --git a/TerminalDocs/tutorials/custom-prompt-setup.md b/TerminalDocs/tutorials/custom-prompt-setup.md index f24c3edf..60105b45 100644 --- a/TerminalDocs/tutorials/custom-prompt-setup.md +++ b/TerminalDocs/tutorials/custom-prompt-setup.md @@ -127,7 +127,7 @@ You can [customize the Oh My Posh themes](https://ohmyposh.dev/docs/linux#custom To install Terminal-Icons with PowerShell, use the command: ```powershell -PS> Install-Module -Name Terminal-Icons -Repository PSGallery +Install-Module -Name Terminal-Icons -Repository PSGallery ``` For more information, including usage and commands, see the [Terminal-Icons](https://github.com/devblackops/Terminal-Icons) repo on GitHub.