Windows: oh is a built-in PowerShell alias (Out-Host) issue #319 closed: completed andymccall opened this · 1 comment
andymccall set labels bug ·
andymccall
Decided (Andy, 2026-10-26): 2 and 3 together. Windows releases ship ohub.exe beside oh.exe (named in the release notes and help), and the installer adds Remove-Item Alias:oh -Force to the user's PowerShell profile so oh works where it ran.
closed by change 5d66f27cebe2 ·
Found running oh 0.9.4's Windows build on the Windows VM (oxygenflow#83, 2026-10-26): in PowerShell,
oh --versionruns PowerShell's built-in aliasoh(Out-Host) and fails ("A positional parameter cannot be found that accepts argument '--version'");oh.exeworks. Every PowerShell user hits this on their first command.Options, for Andy:
oh.exe(andRemove-Item Alias:ohin the profile) — cheap, but a poor first experience.ohub.exe, and say so in the release notes and help.Remove-Item Alias:oh -Forceto the user's PowerShell profile. Recommended: 2 and 3 together (a name that always works, andohrestored where the installer runs).