Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Improving spelling correction prompt to generate aliases for future use
- X-seq: zsh-users 12072
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Gwern Branwen <gwern0@xxxxxxxxx>
- Subject: Re: Improving spelling correction prompt to generate aliases for future use
- Date: Sun, 21 Oct 2007 19:04:58 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: Message from Gwern Branwen <gwern0@xxxxxxxxx> of "Sat, 20 Oct 2007 23:39:59 EDT." <20071021033959.GA4471@localhost>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author