1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 13:58:00 +00:00

Fix issue with several themes where errors occur

if the git module is not loaded.
This commit is contained in:
Ranek Kiil 2014-12-01 23:28:02 -07:00 committed by Sorin Ionescu
parent 0148ee6a4d
commit c171621747
4 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ function prompt_cloud_setup {
'rprompt' '' 'rprompt' ''
# Define prompts. # Define prompts.
PROMPT='%B%F{$primary_color}${prefix}%f%b %B%F{$secondary_color}%c%f%b $git_info[prompt] ' PROMPT='%B%F{$primary_color}${prefix}%f%b %B%F{$secondary_color}%c%f%b ${git_info:+${(e)git_info[prompt]}} '
RPROMPT='' RPROMPT=''
} }

View File

@ -58,7 +58,7 @@ function prompt_kylewest_setup {
zstyle ':prezto:module:ruby:info:version' format '%F{blue}[%v]%f' zstyle ':prezto:module:ruby:info:version' format '%F{blue}[%v]%f'
# Define prompts. # Define prompts.
PROMPT='%F{cyan}%c%f ${git_info[prompt]}${editor_info[keymap]} ' PROMPT='%F{cyan}%c%f ${git_info:+${(e)git_info[prompt]}}${editor_info[keymap]} '
RPROMPT='${ruby_info[version]}' RPROMPT='${ruby_info[version]}'
} }

View File

@ -68,7 +68,7 @@ function prompt_skwp_setup {
zstyle ':prezto:module:ruby:info:version' format '[%v]' zstyle ':prezto:module:ruby:info:version' format '[%v]'
# Define prompts. # Define prompts.
PROMPT="${_prompt_skwp_colors[3]}%n%f@${_prompt_skwp_colors[2]}%m%f ${_prompt_skwp_colors[5]}%~%f "'$git_info[prompt]'"$ " PROMPT="${_prompt_skwp_colors[3]}%n%f@${_prompt_skwp_colors[2]}%m%f ${_prompt_skwp_colors[5]}%~%f "'${git_info:+${(e)git_info[prompt]}}'"$ "
RPROMPT='%F{blue}${ruby_info[version]}' RPROMPT='%F{blue}${ruby_info[version]}'
} }

View File

@ -57,7 +57,7 @@ function prompt_smiley_setup {
zstyle ':prezto:module:git:info:keys' format 'prompt' '(%b%D)' zstyle ':prezto:module:git:info:keys' format 'prompt' '(%b%D)'
# Define prompts. # Define prompts.
PROMPT='$python_info[virtualenv]$ruby_info[version]${git_info[prompt]} %B%c%b %(?:%F{green}ツ%f:%F{red}✖%f) ' PROMPT='$python_info[virtualenv]$ruby_info[version]${git_info:+${(e)git_info[prompt]}} %B%c%b %(?:%F{green}ツ%f:%F{red}✖%f) '
RPROMPT='${editor_info[overwrite]}${VIM:+" %B%F{green}V%f%b"}' RPROMPT='${editor_info[overwrite]}${VIM:+" %B%F{green}V%f%b"}'
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
} }