Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Jumping to the line above
- X-seq: zsh-users 7654
- From: Fabiano Sidler <fabianosidler@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Jumping to the line above
- Date: Thu, 1 Jul 2004 21:55:23 +0200
- In-reply-to: <200407011214.i61CEhUe012898@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200407011214.i61CEhUe012898@xxxxxxxxxxxxxx>
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