[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enhancement: PROMPT_COMMAND_AFTER
From: |
Paul Jarc |
Subject: |
Re: enhancement: PROMPT_COMMAND_AFTER |
Date: |
Sun, 03 Mar 2002 16:27:02 -0500 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) |
me <bad@email.com> wrote:
> Is there currently another way to accomplish this ? (run a cmd before
> the new cmdline is launched)
This is a common request. It can almost be done with a script:
#!/bin/bash -i
while :; do
eval "$PROMPT_COMMAND"
read -ep "$PS1" line || break
eval "$PROMPT_COMMAND_AFTER"
eval "$line"
done
But then you don't get multi-line commands, $ substitution in PS1,
etc.
paul