PowerShell command missing?

Viewed 63

I am trying to install an CL extension for git called hub https://hub.github.com/

I installed the extension using choco. The following screenshot is showing where it was installed, but when I try to use the command it is trying to access a different path?

I tried to copy hub.exe to the path it is trying to access but am getting the same error. Any ideas on what I am doing wrong here or how I can change the path PowerShell goes to?

hub

1 Answers

You can try this to execute hub.exe:

$CommandPath = (Get-Command hub | Select-Object -ExpandProperty Source)
$Command = "$($CommandPath) create"
Invoke-Expression $Command
Related