[PR #4273] [MERGED] Collect all known PowerShell Core installations for dynamic profiles #25698

Closed
opened 2026-01-31 09:11:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4273
Author: @DHowett-MSFT
Created: 1/17/2020
Status: Merged
Merged: 1/31/2020
Merged by: @undefined

Base: masterHead: dev/duhowett/pscore


📝 Commits (8)

📊 Changes

11 files changed (+291 additions, -55 deletions)

View changed files

src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-100.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-125.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-150.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-200.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-100.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-125.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-150.png (+0 -0)
src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-200.png (+0 -0)
📝 src/cascadia/TerminalApp/PowershellCoreProfileGenerator.cpp (+290 -51)
📝 src/cascadia/TerminalApp/PowershellCoreProfileGenerator.h (+0 -4)
📝 src/cascadia/TerminalApp/Profile.h (+1 -0)

📄 Description

This pull request teaches the PowerShell Core generator about a bunch of different locations in which it might find a PowerShell.

These instances will be sorted, a leader will be elected, and that leader will be promoted and given the vaunted title of "PowerShell".

Names will be generated for the rest.

The sort order is documented in the comments, but that comment will be replicated here:

// <-- Less Valued .................................... More Valued -->
// |                 All instances of PS 6                 | All PS7  |
// |          Preview          |          Stable           | ~~~      |
// |  Non-Native | Native      |  Non-Native | Native      | ~~~      |
// | Trd  | Pack | Trd  | Pack | Trd  | Pack | Trd  | Pack | ~~~      |
// (where Pack is a stand-in for store, scoop, dotnet, though they have their own orders,
// and Trd is a stand-in for "Traditional" (Program Files))

Closes #2300


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4273 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 1/17/2020 **Status:** ✅ Merged **Merged:** 1/31/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/duhowett/pscore` --- ### 📝 Commits (8) - [`f714893`](https://github.com/microsoft/terminal/commit/f714893fff8969fb15460977168b32de7c8f4fcc) HAX: powershell core generator - [`92f7c9c`](https://github.com/microsoft/terminal/commit/92f7c9ccca600dc76de2698bae1b656a046bac22) more PSCore hax - [`8a5ea3c`](https://github.com/microsoft/terminal/commit/8a5ea3c9b365a3aaa1e8527ce817cafca18d371a) even more hax for the generator - [`71e7528`](https://github.com/microsoft/terminal/commit/71e75289d404aa754057868bc81f18b6987fae23) more touches - [`3c69bf6`](https://github.com/microsoft/terminal/commit/3c69bf66148dc2320675b6f49663b315020330aa) promote path version - [`7295ff5`](https://github.com/microsoft/terminal/commit/7295ff517967cb2517f6f511ac4cb0c5929a17af) okay it is done - [`a88f66c`](https://github.com/microsoft/terminal/commit/a88f66cfaf3d497d0542e0c11c20b982f24bf266) Merge remote-tracking branch 'github/master' into dev/duhowett/pscore - [`85b032a`](https://github.com/microsoft/terminal/commit/85b032ae6e0da4153ee7ab8405885cc937233985) PR feedback ### 📊 Changes **11 files changed** (+291 additions, -55 deletions) <details> <summary>View changed files</summary> ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-100.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-125.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-150.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh-preview.scale-200.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-100.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-125.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-150.png` (+0 -0) ➕ `src/cascadia/CascadiaPackage/ProfileIcons/pwsh.scale-200.png` (+0 -0) 📝 `src/cascadia/TerminalApp/PowershellCoreProfileGenerator.cpp` (+290 -51) 📝 `src/cascadia/TerminalApp/PowershellCoreProfileGenerator.h` (+0 -4) 📝 `src/cascadia/TerminalApp/Profile.h` (+1 -0) </details> ### 📄 Description This pull request teaches the PowerShell Core generator about a bunch of different locations in which it might find a PowerShell. These instances will be sorted, a leader will be elected, and that leader will be promoted and given the vaunted title of "PowerShell". Names will be generated for the rest. The sort order is documented in the comments, but that comment will be replicated here: ``` // <-- Less Valued .................................... More Valued --> // | All instances of PS 6 | All PS7 | // | Preview | Stable | ~~~ | // | Non-Native | Native | Non-Native | Native | ~~~ | // | Trd | Pack | Trd | Pack | Trd | Pack | Trd | Pack | ~~~ | // (where Pack is a stand-in for store, scoop, dotnet, though they have their own orders, // and Trd is a stand-in for "Traditional" (Program Files)) ``` Closes #2300 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:11:12 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25698