zsh-workers
 help / color / mirror / code / Atom feed
From: Simon Dassow <janus@area319.de>
To: zsh-workers@sunsite.dk
Subject: custom widget / redraw prompt
Date: Mon, 24 Mar 2003 13:57:30 +0100	[thread overview]
Message-ID: <20030324125730.GA23684@nexus> (raw)

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


             reply	other threads:[~2003-03-24 12:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 12:57 Simon Dassow [this message]
2003-03-24 16:36 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030324125730.GA23684@nexus \
    --to=janus@area319.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).