PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[Run][Shell plugin] Configurable shell executable for > commands

Open alekseyl1992 opened this issue 6 years ago • 3 comments

PowerToys Run is a convinient tool. But it would be even better, if it would be possible to configure which program executes > commands. Right now > ping github.com starts in a cmd window, but I, for example, would prefer to use Terminal. Is it possible?

alekseyl1992 avatar May 21 '20 13:05 alekseyl1992

Since PowerToys heavily relies on the original Wox plugins, it should be possible. The original Wox shell settings are located at "%APPDATA%\Wox\Settings\Plugins\Wox.Plugin.Shell\Settings.json".

Settings for PowerToys are located in: "%localappdata%\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json" I can change Shell to the following to open with Powershell in my machine

{
  "Count": {},
  "Shell": 1,
  "ReplaceWinR": false,
  "LeaveShellOpen": true,
  "RunAsAdministrator": true
}

You might need to restart PowerToys for the changes to be applied.

They might be limiting configuration (via UI) for the same reason they are limiting the use of thirdparty plugins for now. To have a base for bugs. Im confident we will see the expansion of this in the future. I love Wox, so lets hope PowerToys surpasses it.

cperez-io avatar May 21 '20 14:05 cperez-io

Editing the settings to get Powershell as default command target worked perfectly.

Only grievance: powershell despite "leaveShellOpen": false stays open with a press enter to continue before it really closes;

adding > ping github.com; exit mitigates this for now

Szandor72 avatar Jun 06 '20 09:06 Szandor72

Closing this in favor of https://github.com/microsoft/PowerToys/issues/4283

enricogior avatar Jan 09 '21 13:01 enricogior