Zcomplete – Shell Typo Correction

7 pointsposted 10 hours ago
by omarfakih

2 Comments

omarfakih

10 hours ago

Mistype a command and zcomplete works out which one you meant from the commands you usually run, then offers to run it with your arguments. Or runs it without asking, if you set it that way.

$ mkd build zcomplete: run mkdir instead of 'mkd'? [Y/n] y

$ cargo tset error: no such command: `tset` zcomplete: run cargo test? [Y/n] y

Works on bash, zsh, and fish. No process on the happy path.

fhn

7 hours ago

thanks, will check it out.