From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Gwern Branwen <gwern0@gmail.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Improving spelling correction prompt to generate aliases for future use
Date: Sun, 21 Oct 2007 19:04:58 +0100 [thread overview]
Message-ID: <200710211804.l9LI4w23004771@pws-pc.ntlworld.com> (raw)
In-Reply-To: Message from Gwern Branwen <gwern0@gmail.com> of "Sat, 20 Oct 2007 23:39:59 EDT." <20071021033959.GA4471@localhost>
Gwern Branwen wrote:
> Looking into it, though, it is not very clear how to do this. I though
> one could perhaps modify SPROMPT to execute 'typo %R %r', but there
> doesn't seem to be any escape to run arbitrary shell commands.
You could "setopt promptsubst" and have typo output the prompt (as well as
whatever else it's doing) then set
SPROMPT='`typo`'
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2007-10-21 22:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 3:39 Gwern Branwen
2007-10-21 18:04 ` Peter Stephenson [this message]
2007-10-21 21:45 ` Bart Schaefer
2007-10-21 22:22 ` Gwern Branwen
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=200710211804.l9LI4w23004771@pws-pc.ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=gwern0@gmail.com \
--cc=zsh-users@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).