Auto-correct mistyped commands and subcommands and re-run them safely.
npm install fuzzrunxrm or mv.
```
node bin/fuzzrun.js git commmmit -m "msg"
Install (npm):
``
npm i -g fuzzrunx
On install, FuzzRun auto-enables shell hooks and will print:
FuzzRun is automatically enabled. Run "fuzzrun disable" to deactivate.
If you want to skip auto-enable, set FUZZRUN_SKIP_ENABLE=1 during install.fuzzrun
If auto-enable didn't run (scripts disabled or local install), running any command with will attempt a one-time auto-enable unless FUZZRUN_SKIP_ENABLE=1 is set.
On uninstall, FuzzRun automatically removes its shell hooks.
Add to your shell rc:
`bash`
FUZZRUN_BIN="/absolute/path/to/bin/fuzzrun.js"
fuzzrun() { node "$FUZZRUN_BIN" "$@"; }
command_not_found_handle() { fuzzrun "$@"; }
git() { fuzzrun git "$@"; } # optional: wrap git to auto-fix subcommands
command_not_found_handle
Notes: is bash-only; on zsh use command_not_found_handler. Keep FUZZRUN_BIN absolute.
Documents\PowerShell\Microsoft.PowerShell_profile.ps1
$3
Append to :
`
powershell`
$fuzzrun = "C:\Users\HP\fuzzRun\bin\fuzzrun.js" # update path
function global:fuzzrun { node $fuzzrun @args }
$ExecutionContext.InvokeCommand.CommandNotFoundAction = {
param($commandName, $eventArgs)
fuzzrun $commandName @($eventArgs.Arguments)
}
function global:git { fuzzrun git @args } # optional git wrapper
(add hooks to your shell profile)
- fuzzrun disable (remove hooks)
- fuzzrun status (show which profiles are enabled)
$3
- Runs the command once; if it fails with "command not found" or "unknown subcommand", tries a one-edit-away fix or the CLI's own suggestion and re-runs automatically.
- Uses Damerau-Levenshtein (handles transposed letters) and refuses ambiguous matches.
- Skips auto-run when risky flags are present (--force, --hard, -rf, etc.) and blocks dangerous bases (rm, mv, dd, etc.).
- Subcommand suggestions are preloaded for popular CLIs (git, npm/yarn/pnpm, pip, docker, kubectl, gh) plus "did you mean" parsing.
- Context-aware fixes for git checkout/switch and npm/yarn/pnpm run