• About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us
TechTrendFeed
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT
No Result
View All Result
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT
No Result
View All Result
TechTrendFeed
No Result
View All Result

GitHub Copilot for CLI for PowerShell

Aarav Kapoor by Aarav Kapoor
April 16, 2025
Home Software
Share on FacebookShare on Twitter



GitHub Subsequent has this cool challenge that’s principally Copilot for the CLI (command line interface). You’ll be able to join their waitlist on the Copilot for CLI website.

Copilot for CLI offers three shell instructions: ??, git? and gh?

That is cool and all, however I take advantage of PowerShell. Seems these ?? instructions are simply router instructions to a bigger EXE known as github-copilot-cli. So when you go “?? one thing” you are actually going “github-copilot-cli what-the-shell one thing.”

So this implies I ought to be capable of to do the identical/comparable aliases for my PowerShell immediate AND change the injected immediate (have a look at me I am a immediate engineer) so as to add ‘use powershell to.’

Now it isn’t good, however hopefully it would make the purpose to the Copilot CLI staff that PowerShell wants love additionally.

Listed below are my aliases. Be at liberty to recommend if these suck. Observe the addition of “consumer powershell to” for the ?? one. I could make a ?? and a p? the place one does bash and one does PowerShell. I may even have it use wsl.exe and shell out to bash. Numerous prospects.

operate ?? { 
$TmpFile = New-TemporaryFile
github-copilot-cli what-the-shell ('use powershell to ' + $args) --shellout $TmpFile
if ([System.IO.File]::Exists($TmpFile)) {
$TmpFileContents = Get-Content material $TmpFile
if ($TmpFileContents -ne $nill) {
Invoke-Expression $TmpFileContents
Take away-Merchandise $TmpFile
}
}
}

operate git? {
$TmpFile = New-TemporaryFile
github-copilot-cli git-assist $args --shellout $TmpFile
if ([System.IO.File]::Exists($TmpFile)) {
$TmpFileContents = Get-Content material $TmpFile
if ($TmpFileContents -ne $nill) {
Invoke-Expression $TmpFileContents
Take away-Merchandise $TmpFile
}
}
}
operate gh? {
$TmpFile = New-TemporaryFile
github-copilot-cli gh-assist $args --shellout $TmpFile
if ([System.IO.File]::Exists($TmpFile)) {
$TmpFileContents = Get-Content material $TmpFile
if ($TmpFileContents -ne $nill) {
Invoke-Expression $TmpFileContents
Take away-Merchandise $TmpFile
}
}
}

It additionally then gives to run the command. Very easy.

image

Hope you prefer it. Numerous enjoyable stuff taking place on this area.




About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, guide, father, diabetic, and Microsoft worker. He’s a failed stand-up comedian, a cornrower, and a e book creator.

facebook
bluesky
subscribe
About   Publication

Internet hosting By
Hosted on Linux using .NET in an Azure App Service








Tags: CLICopilotGitHubPowerShell
Aarav Kapoor

Aarav Kapoor

Aarav Kapoor covers the latest in technology, gadgets, cybersecurity, software and smart home trends for TechTrendFeed. He breaks down complex tech news into clear, practical insights for everyday readers.

Next Post
My vibration sensor automation did not work out

My vibration sensor automation did not work out

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending.

Discover a Software program Improvement Firm in Europe

Discover a Software program Improvement Firm in Europe

August 22, 2025
Constructing cyber-resilient AI within the enterprise

Constructing cyber-resilient AI within the enterprise

September 14, 2026
The House Assistant survey dataset – Open House Basis

The House Assistant survey dataset – Open House Basis

August 29, 2026
KV Cache Administration: PagedAttention & RadixAttention

KV Cache Administration: PagedAttention & RadixAttention

August 23, 2026
Consider any agent framework with Amazon Bedrock AgentCore Evaluations

Consider any agent framework with Amazon Bedrock AgentCore Evaluations

August 27, 2026

TechTrendFeed

Welcome to TechTrendFeed, your go-to source for the latest news and insights from the world of technology. Our mission is to bring you the most relevant and up-to-date information on everything tech-related, from machine learning and artificial intelligence to cybersecurity, gaming, and the exciting world of smart home technology and IoT.

Categories

  • Cybersecurity
  • Gaming
  • Machine Learning
  • Smart Home & IoT
  • Software
  • Tech News

Recent News

Nail your narrative

Nail your narrative

September 17, 2026
Elevate Your Modern Home with LED Rose Lamps and West Elm Decor Ideas of 2026 – Chefio

Elevate Your Modern Home with LED Rose Lamps and West Elm Decor Ideas of 2026 – Chefio

September 16, 2026
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us

© 2025 https://techtrendfeed.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT

© 2025 https://techtrendfeed.com/ - All Rights Reserved