4 ms·
Not sure how well it works: - Suggested `ls` for `sl` despite the fact that the latter [0] is a wonderful utility. - `chomd` didn't yield any suggestion. Nei
by 0xmohit 10y ago
Not sure how well it works:
- Suggested `ls` for `sl` despite the fact that the latter [0] is a wonderful utility.
- `chomd` didn't yield any suggestion. Neither did `fskc`.
A similar utility that actually helps is thefuck [1].
[0] https://github.com/mtoyoda/sl https://github.com/mtoyoda/sl
[1] https://github.com/nvbn/thefuck https://github.com/nvbn/thefuck
- amyjess 10y agoOddly enough, both of the points you bring up are handled perfectly by zsh's built-in correction. zsh will only suggest 'ls' for 'sl' if 'sl' isn't installed, and it'll catch 'fksc' and 'chomd'.
- deleted 10y ago[deleted]
- kazinator 10y agoHow well it works is: exactly to the extent that the crowd-sourced data is accurate. No more and no less. It is not reasonable to suggest "ls" for "sl". If we regard this as typo correction, we have to consider that no letter in the command is in the correct position. For typo correction to be plausible, it has to affect only some reasonable fraction of the command. The command has to be fairly long and the edit required to correct it has to be fairly small. E.g. showmnt -> showmount.