[PR #9508] [MERGED] OpenConsole.psm1: use DevShell module; tidy up for PowerShell 6+ #27608

Open
opened 2026-01-31 09:22:59 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9508
Author: @LuanVSO
Created: 3/15/2021
Status: Merged
Merged: 3/16/2021
Merged by: @DHowett

Base: mainHead: pwsh-devshell-module


📝 Commits (8)

  • 0a72d4a fix for diferent behavior of gci in powershell 7
  • 56694a5 use vsdevshell module to do the hard work
  • c1ba6e4 cleanup
  • 55928c2 actually this works better
  • 9084a0a use set item instead
  • cda3dcb spelling?
  • bc0b714 use full name instead
  • cd5bcd2 this was only necessary for new-item

📊 Changes

1 file changed (+8 additions, -9 deletions)

View changed files

📝 tools/OpenConsole.psm1 (+8 -9)

📄 Description

Saw this while snooping around, the gci command on PowerShell core seems
to store the full path in the variable as oppose to just the leaf.

The other modification is to use the PowerShell module that vs ships to
setup the environment.


🔄 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/9508 **Author:** [@LuanVSO](https://github.com/LuanVSO) **Created:** 3/15/2021 **Status:** ✅ Merged **Merged:** 3/16/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `pwsh-devshell-module` --- ### 📝 Commits (8) - [`0a72d4a`](https://github.com/microsoft/terminal/commit/0a72d4acc9d9487f33f8d43c6632026d79c0fee7) fix for diferent behavior of gci in powershell 7 - [`56694a5`](https://github.com/microsoft/terminal/commit/56694a55c5aa680e61735d57933dfd21f1deaedb) use vsdevshell module to do the hard work - [`c1ba6e4`](https://github.com/microsoft/terminal/commit/c1ba6e4ecfc9ce7f7ace6c607bea34cbf314f92d) cleanup - [`55928c2`](https://github.com/microsoft/terminal/commit/55928c2530ffd1b3f8200f0d81f28aad4d0daf2b) actually this works better - [`9084a0a`](https://github.com/microsoft/terminal/commit/9084a0a79f5e81ded8fd418ad2d77343e10af3fe) use set item instead - [`cda3dcb`](https://github.com/microsoft/terminal/commit/cda3dcb27507968640ee36490bea0abbe858bdf0) spelling? - [`bc0b714`](https://github.com/microsoft/terminal/commit/bc0b71445ec07212630af273563a6044f1b4d3cf) use full name instead - [`cd5bcd2`](https://github.com/microsoft/terminal/commit/cd5bcd218bce7c3b9857ef050a114f34390512fe) this was only necessary for new-item ### 📊 Changes **1 file changed** (+8 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tools/OpenConsole.psm1` (+8 -9) </details> ### 📄 Description Saw this while snooping around, the gci command on PowerShell core seems to store the full path in the variable as oppose to just the leaf. The other modification is to use the PowerShell module that vs ships to setup the environment. --- <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:22:59 +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#27608