I have a somewhat uncomfortable keyboard on my laptop, resulting in that I sometimes misspell things in Bash and when pressing Tab for an auto-completion nothing happens.
Is it possible to have Bash guess what I meant to type, by for example when wanting to change directory to Documents and then mistyping cd ocum[TAB]
, given no other folder beginning with "ocum" is present, Bash interprets it as cd Documents/
since it is the closest possible action to do?
Or is this idea terribly complicated to achieve?
cd *ments*
does what I want. But using wildcards every time kind of beats the purpose of doing things fast.zstyle ':completion:*' matcher-list 'b:=*'