For those "Oh Crap!" moments where you mistyped. π
carp corrects a mistyped first subcommand using Fish's existing completions,
then runs the corrected command.
> git stauts
# runs: git statusCarp only applies a correction when one completion is the unique closest match within a small edit distance. It leaves ambiguous typos unchanged. To avoid surprising changes to filenames and other values, it only examines the first argument to a command.
Obviously, you also need some kind of shell completion for the command you are using - since Carp uses these completions to guess what you meant.
Install with Fisher:
fisher install jernev/carpCarp binds the enter key. On uninstall, it removes that binding and Fish falls
back to its preset Enter binding.
- Fish 3.4 or newer
- Fisher