Use up-line-or-search for cursor in zsh.