Skip to content

pwsh: add Windows Terminal profile installation script#7466

Open
rafaeloledo wants to merge 6 commits intoScoopInstaller:masterfrom
rafaeloledo:master
Open

pwsh: add Windows Terminal profile installation script#7466
rafaeloledo wants to merge 6 commits intoScoopInstaller:masterfrom
rafaeloledo:master

Conversation

@rafaeloledo
Copy link
Copy Markdown
Contributor

@rafaeloledo rafaeloledo commented Dec 29, 2025

When you execute winget install pwsh, the profile is added automatically.

Changes:

  • Executing powershell -ExecutionPolicy Bypass -File install-profile.ps1 will add the pwsh profile based on SCOOP env var.
  • Format notes

One thing to note:

  • The script may be signed to alter the execution policy from Bypass.
  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

@github-actions
Copy link
Copy Markdown
Contributor

Your changes did not pass all checks.

Please address the issues in the manifest and comment starting with /verify to rerun the checks.

pwsh

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@rafaeloledo
Copy link
Copy Markdown
Contributor Author

/verify

@github-actions
Copy link
Copy Markdown
Contributor

Your changes did not pass all checks.

Please address the issues in the manifest and comment starting with /verify to rerun the checks.

pwsh

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@rafaeloledo
Copy link
Copy Markdown
Contributor Author

I can't find the code that is not passing on the github-actions:lint

@Lutra-Fs
Copy link
Copy Markdown
Member

I can't find the code that is not passing on the github-actions:lint

To resolve the lint issue, you can run .\bin\formatjson.ps1.

@rafaeloledo
Copy link
Copy Markdown
Contributor Author

/verify

@github-actions
Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

pwsh

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@Lutra-Fs Lutra-Fs changed the title chore: add pwsh Windows Terminal profile installation script pwsh: add Windows Terminal profile installation script Jan 4, 2026
@cscnk52
Copy link
Copy Markdown
Contributor

cscnk52 commented Apr 9, 2026

I'm think it's necessary or not, seem my windows terminal can automatically find and add profile for pwsh, i never config for it.

@rafaeloledo
Copy link
Copy Markdown
Contributor Author

@cscnk52

Windows Terminal maps profiles with JSON. As i've described in the initial comment, installing with winget does it automatically.

Scoop is not handling this task.

It's all mapped on the settings.json file.

The manual way is invoking (New-Guid).ToString() in powershell, then catching your current pwsh path and adding to the JSON.

The same way you can manually change the registry and services with CLI. For convenience and avoiding manually doin it, especially for new and unsuspecting users, we can provide it on the installation process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants