Skip to content

Commit b00c36e

Browse files
mattwojoshgognav-aljeJasonWHowellRosefield
authored
Merge Main > Live (#480)
* 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 #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 Co-authored-by: Shubham Gogna <36936863+shgogna@users.noreply.github.com> Co-authored-by: Alma Jenks <v-alje@microsoft.com> Co-authored-by: Jason Howell <5067358+JasonWHowell@users.noreply.github.com> Co-authored-by: Schuyler Rosefield <Rosefield@users.noreply.github.com>
1 parent 57ed446 commit b00c36e

File tree

3 files changed

+7
-45
lines changed

3 files changed

+7
-45
lines changed

TerminalDocs/command-line-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Below is the full list of supported commands and options for the `wt` command li
6060
| `split-pane`, `sp` | `--startingDirectory, -d starting-directory` | Creates a new split window pane based on the assigned starting directory path. If this parameter is not assigned, the default starting directory will be used. | Directory path |
6161
| `split-pane`, `sp` | `--title` | Creates a new split window pane with the assigned title. | Text to use as the tab title |
6262
| `split-pane`, `sp` | `--tabColor` | Creates a new split window pane with the assigned tab color. | Hex color as #RGB or #RRGGBB |
63-
| `split-pane`, `sp` | `--size, -s size`| Creates a new split window pane with the assigned size. | Float that specifies the portion of the parent pane to use |
63+
| `split-pane`, `sp` | `--size, -s size`| Creates a new split window pane with the assigned size. | Float that specifies the portion of the parent pane to use represented by a decimal. For example, `.4` to represent 40% of the parent pane. |
6464
| `split-pane`, `sp` | `commandline` | Creates a new split window pane based on the assigned command line. | Executable with optional commands |
6565
| `split-pane`, `sp` | `--duplicate, -D` | Creates a new split window pane that is a duplicate of the current pane. | N/A. No additional values to assign. |
6666

TerminalDocs/dynamic-profiles.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Windows Terminal Dynamic Profiles
33
description: Learn about dynamic profiles in Windows Terminal.
44
author: cinnamon-msft
55
ms.author: cinnamon
6-
ms.date: 08/30/2021
6+
ms.date: 01/06/2022
77
ms.topic: conceptual
88
---
99

@@ -137,41 +137,3 @@ Assuming that you've installed MSYS2 into `C:\\msys64`:
137137
```
138138

139139
For more details, see the Terminals section of the [MSYS2 documentation](https://www.msys2.org/docs/terminals/#windows-terminal).
140-
141-
### Developer Command Prompt for Visual Studio
142-
143-
Assuming that you've installed [Visual Studio](/visualstudio/install/install-visual-studio):
144-
145-
```json
146-
{
147-
"name": "Developer Command Prompt",
148-
"commandline": "cmd.exe /k \"C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/Tools/VsDevCmd.bat\"",
149-
"startingDirectory": "%USERPROFILE%"
150-
}
151-
```
152-
153-
> [!NOTE]
154-
> Visual Studio’s “Developer Powershell” and “Developer Command Prompt” include shell environment variables and tools settings that would not be available in the default Command Prompt or Powershell instance.
155-
156-
### Developer Powershell for Visual Studio
157-
158-
Assuming that you've installed [Visual Studio](/visualstudio/install/install-visual-studio):
159-
160-
```json
161-
{
162-
"name": "Developer Powershell",
163-
"commandline": "powershell.exe -noe -c \"&{Import-Module \"\"\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/Tools/Microsoft.VisualStudio.DevShell.dll\"\"\"; Enter-VsDevShell 994a9d58}\""
164-
}
165-
```
166-
167-
To find the `commandline` path to use in the Windows Terminal settings for your Visual Studio instance:
168-
169-
1. Find the shortcut to `Developer Powershell for VS 2019` in the start menu
170-
2. Right-click and select `Open File Location`
171-
3. Right-click and select `Properties` on the shortcut
172-
4. Inspect the `Target` field. It will be some value like `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 994a9d58}"`
173-
5. Use `Target` field value to update the file path for `Import-Module` in the profile `commandline`
174-
6. Use `Target` field value to update the unique instance ID used with the `Enter-VsDevShell` command in the profile `commandline`
175-
176-
> [!NOTE]
177-
> Visual Studio’s “Developer Powershell” and “Developer Command Prompt” include shell environment variables and tools settings that would not be available in the default Command Prompt or Powershell instance.

TerminalDocs/faq.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ metadata:
33
title: Windows Terminal FAQ
44
description: Frequently asked questions about Windows Terminal, such as how to start terminal in administrator mode, how to save a terminal session, and more.
55
ms.topic: troubleshooting
6-
ms.date: 12/09/2021
6+
ms.date: 01/06/2022
77
ms.author: mattwoj
88
author: mattwojo
99
manager: jken
@@ -96,14 +96,14 @@ sections:
9696
9797
![Screenshot of filing an issue in terminal repo](./images/file-issue.png)
9898
99+
- question: How can I customize PowerShell prompt colors using PSReadLine?
100+
answer: |
101+
The PSReadLine module is responsible for setting the colors and behavior of your PowerShell command line. You can set colors for specific attributes of your PowerShell prompt by using the [Set-PSReadLineOption, see Example 4: Set multiple color options](/powershell/module/psreadline/set-psreadlineoption#example-4--set-multiple-color-options).
102+
99103
# - question: Is there a way to sync your terminal settings across devices?
100104
# answer: |
101105
# TBD
102106

103107
# - question: Can we expect a status bar on the bottom of Windows Terminal?
104108
# answer: |
105109
# TBD
106-
107-
# - question: TBD
108-
# answer: |
109-
# TBD

0 commit comments

Comments
 (0)