Skip to content

RespectMathias/pwsh-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwsh-copilot

Use GitHub Copilot CLI in PowerShell 5.1 on Windows.

Install

npm i -g pwsh-copilot

Verify

pwsh --version             # PowerShell 7.5.4 (shim output)
$PSVersionTable.PSVersion  # Actual PowerShell version

Uninstall

npm rm -g pwsh-copilot
Remove-Item "$env:APPDATA\npm\pwsh.exe" -ErrorAction SilentlyContinue # Remove leftover shim

How it works

  • Installs GitHub Copilot CLI (@github/copilot)
  • Fakes pwsh --version → prints PowerShell 7.5.4
  • Forwards all other arguments to the system’s powershell.exe

MIT License © 2025 Mathias Lund-Hansen

About

A simple compatibility tool that lets GitHub Copilot CLI run on Windows PowerShell 5.1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages