I am using zsh and iTerm2. I always use the Tab-key when i want to autocomplete the command. But if there is no command to be autocompleted, the cursor will move forward which is not what i want.
So is there a way to disable the cursor that moves forward when no command can be autocompeleted, thanks.
The behaviour of Tab on an empty line can be configured by the zstyle insert-tab:
zstyle ':completion:*' insert-tab <VAL>
where <VAL>
can be
So if you don't want it to insert a TAB, you can set it to false:
zstyle ':completion:*' insert-tab false