Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Improving spelling correction prompt to generate aliases for future use



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