From a8ea44c862b67b35b49247d12d46f61d1fffba26 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 11 Oct 2021 10:32:28 -0500 Subject: [PATCH] Fix gitstatus problem --- zsh/configs/prompt.zsh.local | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zsh/configs/prompt.zsh.local b/zsh/configs/prompt.zsh.local index a76af37..e202e3d 100644 --- a/zsh/configs/prompt.zsh.local +++ b/zsh/configs/prompt.zsh.local @@ -1,13 +1,13 @@ -source "$(brew --prefix)/opt/gitstatus/gitstatus.plugin.zsh" +source $(brew --prefix)/opt/gitstatus/gitstatus.plugin.zsh MY -gitstatus_start MY +gitstatus_startMY MY export GIT_PROMPT="" update_git_prompt() { typeset -g GIT_PROMPT="" - gitstatus_query -t 5 MY || return + gitstatus_queryMY MY || return [[ $VCS_STATUS_RESULT == ok-sync ]] || return GIT_PROMPT+="%{$fg[blue]%}[%{$fg_bold[blue]%}${VCS_STATUS_LOCAL_BRANCH}%{$reset_color%}" @@ -24,7 +24,7 @@ update_git_prompt() { } os_icon() { - case `uname` in + case $(uname) in Darwin) echo "%{$fg[white]%} macOS%{$reset_color%}" ;; @@ -59,7 +59,7 @@ export PROMPT='$(os_icon) ${SSH_CONNECTION+"%{$fg[yellow]%}%n@%m%{$reset_color%} export RPROMPT='%D{%K:%M:%S}' # update the prompt on carriage return -function _reset-prompt-and-accept-line() { +function _reset-prompt-and-accept-line { zle reset-prompt zle .accept-line }