mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-02 00:29:25 +00:00
Resolves 1641 - Checks whether the prompt is set to be managed or not. (#1723)
This is a new variable that will need to be set on all new prompts and is not backwards compatible with custom prompts that are not prezto managed, but use prezto's editor-info functionality. Updated the README.md with additional information for themes.
This commit is contained in:
@ -32,6 +32,9 @@ function prompt_minimal_setup {
|
||||
# Add hook for calling vcs_info before each command.
|
||||
add-zsh-hook precmd prompt_minimal_precmd
|
||||
|
||||
# Tell prezto we can manage this prompt
|
||||
zstyle ':prezto:module:prompt' managed 'yes'
|
||||
|
||||
# Set vcs_info parameters.
|
||||
zstyle ':vcs_info:*' enable bzr git hg svn
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
@ -57,3 +60,4 @@ function prompt_minimal_preview {
|
||||
}
|
||||
|
||||
prompt_minimal_setup "$@"
|
||||
# vim: ft=zsh
|
||||
|
Reference in New Issue
Block a user