On Thu, Jul 24, 2008 at 20:26, Sharninder sharninder@gmail.com wrote:
I was wondering if something similar for the shell would be useful. It
could
for example alter the history to only have the commands that you used in
the
context of working on a paritcular task. It could maybe even set up env accordingly.
I don't know if I've understood your problem but I'll hazard a guess.
I don't know if a specific plugin or a software available for bash that does this, but command completion with ^r is one way to look at your problem. Am I correct ? Would that solve your problem or you are looking for something more deeper than that, something which actually understands the context you're working in ?
Im looking for something deeper. something which maybe requires me to explicitly say: $> context server-backup
and then when i use history options such as up key, ^r also, it shows me commands which I had execute while in this context.
I guess at a starting level, all Im looking to do is associate a context id with each history entry. And then have a plugin that handles the up key to show only commands associated with the current active context id.
-- Sharninder http://nomadicrider.com/ -- http://mm.glug-bom.org/mailman/listinfo/linuxers