Is it possible to make Zsh stop trying to correct arguments that are not meant to be files with files from the current directory without turning off correction completely or limiting it to
setopt CORRECT (only correct the command)?
For example, when
CORRECT_ALL is set with
setopt, this happens:
gris@arefiev: ~% cd srcc change srcc to src-nyae? n
So far, good (argument to
cd should be a file). However,
gris@arefiev: ~% man zile change zile to .zile-nyae?
What? I would expect it to correct
man is called with
-C option. It also tries to correct host parameters of
ssh, first arguments to
sudo etc which gets really annoying.
I have to resort to a crutch: set
alias man='nocorrect man' etc etc, for every affected command, but clearly it's not the best solution. I also don't like
CORRECT and would prefer the crutch plus
CORRECT_ALL to just
zsh 4.3.17 (x86_64-unknown-linux-gnu), Debian sid.
Update: here is my