Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
custom widget / redraw prompt
- X-seq: zsh-workers 18377
- From: Simon Dassow <janus@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: custom widget / redraw prompt
- Date: Mon, 24 Mar 2003 13:57:30 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: Simon Dassow <janus@xxxxxxxxxxx>
Hi all,
i'm currently on a custom widget, which will dis/enable the RPROMPT on
keypress (^P), so i can copy the commandline without the RPROMPT.
What i currently have in my .zshrc is:
switch-rprompt() {
if [[ -z $RPROMPT ]]; then
export RPROMPT=$MYRPROMPT
else
export RPROMPT=""
fi
zle -R
}
zle -N switch-rprompt
bindkey ^P switch-rprompt
but that doesnt works like it should.
Maybe some of you knows whats wrong there, i've already searched the
manpages, but i must be blind or so.
Regards,
Simon
Messages sorted by:
Reverse Date,
Date,
Thread,
Author