From 82710c29fc5bcc243f29d97d43bef600f51d2781 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 14 Oct 2014 19:32:48 -0400 Subject: [PATCH] Fix theme function declaration style --- modules/prompt/functions/prompt_minimal_setup | 4 ++-- modules/prompt/functions/prompt_peepcode_setup | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/prompt/functions/prompt_minimal_setup b/modules/prompt/functions/prompt_minimal_setup index 218efb2..8c07e70 100644 --- a/modules/prompt/functions/prompt_minimal_setup +++ b/modules/prompt/functions/prompt_minimal_setup @@ -9,7 +9,7 @@ # http://i.imgur.com/zLZNK.png # -function +vi-git-status() { +function +vi-git_status { # Check for untracked files or updated submodules since vcs_info does not. if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then hook_com[unstaged]='%F{red}โ—%f' @@ -40,7 +40,7 @@ function prompt_minimal_setup { zstyle ':vcs_info:*' formats ' - [%b%c%u]' zstyle ':vcs_info:*' actionformats " - [%b%c%u|%F{cyan}%a%f]" zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b|%F{cyan}%r%f' - zstyle ':vcs_info:git*+set-message:*' hooks git-status + zstyle ':vcs_info:git*+set-message:*' hooks git_status # Define prompts. PROMPT='%2~${vcs_info_msg_0_} ยป ' diff --git a/modules/prompt/functions/prompt_peepcode_setup b/modules/prompt/functions/prompt_peepcode_setup index a83710e..d1d3ae5 100644 --- a/modules/prompt/functions/prompt_peepcode_setup +++ b/modules/prompt/functions/prompt_peepcode_setup @@ -10,7 +10,7 @@ # http://i.imgur.com/LhgmW.png # -function +vi-git-status() { +function +vi-git_status { # Check for untracked files or updated submodules since vcs_info does not. if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then hook_com[unstaged]=' %F{8}โœ—%f' @@ -45,7 +45,7 @@ function prompt_peepcode_setup { zstyle ':vcs_info:*' unstagedstr ' %F{8}โœ—%f' zstyle ':vcs_info:*' formats ' %F{8}%b%f %F{white}%.7i%f%u' zstyle ':vcs_info:*' actionformats ' %F{8}%b%f %F{white}%.7i%f +%a%u' - zstyle ':vcs_info:git*+set-message:*' hooks git-status + zstyle ':vcs_info:git*+set-message:*' hooks git_status # Set ruby-info parameters. zstyle ':prezto:module:ruby:info:version' format ' %F{white}%v%f'