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

monitoring the shell prompt



I would like to monitor the command line editor status and perform
some action as a change happen.
Since i use to switch often between vi-cmd and vi-ins modes, it would 
be useful to get the current vi mode displayed within the prompt 
As an example:
In command mode:  PROMPT='(@%m) %n - %% '
In insert mode:   PROMPT='(@%m) %n + %% '

Is it possible with the current version of zsh?

Thank you for your suggestions


Paolo Pumilia
---- cstc -



Messages sorted by: Reverse Date, Date, Thread, Author