Get started

Build, install, restart

CommandFixer is a Go program with no external dependencies. Clone it, build the binary and run the installer. It hooks your profile per-user with no administrator rights.

Build

Run .\build.ps1 -Test to run the tests and build; go build -o commandfixer.exe . works directly too.

Install

.\install.ps1 copies the binary to %LOCALAPPDATA%\CommandFixer\, adds it to your user PATH, writes a starter config if you have none and hooks both the PS7 and PS5 profiles.

Restart PowerShell

Open a fresh session so the profile hook loads. Now mistype a command and press Enter: the correction appears before it runs.

Uninstall any time

.\uninstall.ps1 removes the hook from both profiles, deleting the binary and its PATH entry while keeping your config and log. Add -RemoveConfig to remove those too.

# Clone, test and build
git clone https://github.com/oernster/commandfixer
cd commandfixer
.\build.ps1 -Test

# Install the hook for PowerShell 7 and Windows PowerShell 5
.\install.ps1

# Check a correction by hand (no hook needed; it is logged too)
commandfixer correct "git sattus"   # prints: git status

# See how many corrections it has made
commandfixer stats