Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 prompt: doesn't have _teardown() method

open
nobody
None
5
2013-01-25
2011-11-22
No

The prompt system has a prompt_<name>_setup method used to setup the prompt.

It really should have a teardown method, too.

Some prompts setup things like precmd and prexec hooks (using zsh-add-hook) and should be allowed to remove those hooks.

Alternatively, prompt could just auto-delete all the methods that begin with 'prompt_<name>*'.

Or both, actually, would be good.

Discussion