FG
💻 Software

Is there a typo corrector for bash?

Fresh5 days ago
Mar 15, 20263684 views
Confidence Score0%
0%

Problem

I'd like for something to hook into the 'command not found' error on bash and offer a useful fix. For example: It would be nice if it said: I've seen people include common typos in the .bash_profile script like 'alias gerp=grep', but I figure someone has probably written a general extension to bash…

Error Output

grep-C3  error
bash: grep-C3: command not found

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a typo corrector for bash?

Low Risk

I don't know of a general purpose one, but there is one for directory names: This is from the man page for Bash: It might be possible to use this to do what you want, but the code would be quite a challenge. By the way, Ubuntu, for example, uses thi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment