sorin-ionescu/prezto — pull request #394 by orenhe (2013-02-18 22:41:08+00:00)
Title: git-info: modify Ctrl+C behavior to be more explicit

I find git-info's auto-disable behavior confusing and too implicit. I'm referring to the case of Ctrl+C press while git-info is running.

Even though it prints a warning message once, it's easy to miss it. Happened to me and seen others with disabled-git-prompts, not knowing why this was set.

I suggest to make the behavior more natural, that is:
1. Ctrl+C merely aborts the current call, doesn't modify settings, but displays an informative message.
2. Suggests running 'git-info off' to disable git prompt in current repo.
3. Suggests adding a zstyle setting to disable git prompt for all repos.

This way, the user is fully aware of the disable action.