Zsh autocorrect, edit option. Can I move the cursor to the wrong command?

This is just a tiny tiny problem that I just experienced.

zsh will try to auto- car someTextFile.txt . Unfortunately, zsh offers xar someTextFile.txt when I really want cat .

When I select the edit option ( e at the [nyae] ), zsh presents me with the following: car someTextFile.txt| ( | - cursor position). I would really like zsh to place the cursor on the command with an error. For example: car| someTextFile.txt car| someTextFile.txt - is this possible?

Just a little annoyance :-)

+4
source share
1 answer

I do not know how to accomplish what you desire. However, for commands that you usually make mistakes, you can add an alias to your .zshrc:

alias car='cat'

Thus, when you make a mistake, the "car" will be launched "cat".

+1
source

All Articles