Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
monitoring the shell prompt
- X-seq: zsh-users 2645
- From: "Paolo M. Pumilia" <pol@xxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: monitoring the shell prompt
- Date: Sat, 2 Oct 1999 15:03:28 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: pumilia@xxxxxx
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