Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Weird reset-prompt behavior
- X-seq: zsh-users 13154
- From: "xRaich[o]²x" <raichoo@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Weird reset-prompt behavior
- Date: Sat, 23 Aug 2008 22:49:13 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=HOb3jv+ZPZZhrZBYKhOE1t3Xt9AdfR/1FghI6lojfW4=; b=sgmG4qBxNTM1mFcSUzNDWDXOllQc/N15eJClBRZYb+wDua2QfUxg0dryQpwHPGoxr2 zDPU5P63oB0ETozMQ0vigqjTBt+t1A3gQvuZHE7Fr76VaDTapjlFjRj2hm57uDDR+K/M 6c6mlR4zFvgUoLvBTAF9xNpnYeQehORrGGEBw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=J2hhWx0eihvcNdI4ptvbTGt/gLLEyi9bhpgcpjgfHf4c6PUcRG4zZV+lgQ5wWCpzzM BygV4N2z6yB1OAz/MPbZ5J2kmCIyJ4TgWrR12sDVc8e7d2dlOO3O/pRIdfBo9GZnn3XZ VMbJPWSOg17dIuQdg/swC9gGCUlYKAnpVeD5I=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
I'm pretty new to zsh so i don't know if this is already known, but i
discovered a pretty weird behavior when resetting the prompt and rprompt
I did something like this:
zle-line-init zle-keymap-select()
{
RPROMPT=${${KEYMAP/vicmd/-- COMMAND --}/main/}
PROMPT=${${KEYMAP/main/$SAVEDPROMPT}/vicmd/}
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
the odd thing is that the rprompt only gets resetted after hitting ctrl-c
(after hitting that once it works flawless). I could work around this by
setting transientrprompt but on a fresh shell i need to issue at least one
command otherwise rprompt does not reset.
Regards,
Björn
Messages sorted by:
Reverse Date,
Date,
Thread,
Author