From ab01293a2d0484d6d1200aa236cf672a1b07ebf8 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 10 Mar 2013 17:39:18 +0100 Subject: [PATCH] Call `git` directly and bypass aliases Useful so it doesn't get slowed down by wrappers like `hub` --- prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompt.zsh b/prompt.zsh index c3e2bfc..4107c95 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -35,7 +35,7 @@ zstyle ':vcs_info:git*' actionformats ' %b|%a' # Fastest possible way to check if repo is dirty git_dirty() { [ -d .git ] || return - git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*' + command git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*' } # Displays the exec time of the last command if set threshold was exceeded