Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Jumping to the line above



Peter Stephenson wrote:
> [a widget and a patch]

Whoah, thanks! But don't break your legs for me! ;)
The problem with your solution: It's not portable, but I'm going to use
the zsh on other boxes, even where I'm not root on. Hence, there must be
a solution entirely written in zsh scripts, not in C.
The following does not work, as you said:

	~ $ updir() { echo -n $'\r               '; cd .. ; zle redisplay }
	~ $ zle -N updir
	~ $ bindkey '^U' updir
	~ $ [^U^U]

I must press Return to get the desired prompt:

	/ $

I wouldn't believe it, if there were not a solution. But where? ;)
Thanks for reply!

Greetings,
Fips



Messages sorted by: Reverse Date, Date, Thread, Author