From 6fd95f313f42e2c1393db64dc180152ec96b1523 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 8 Sep 2016 09:46:01 +1200 Subject: Fix an issue (silencing Git prompt errors) --- zsh/zshrc.d/prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh index 858ec2ea..48a3d5f9 100644 --- a/zsh/zshrc.d/prompt.zsh +++ b/zsh/zshrc.d/prompt.zsh @@ -62,7 +62,7 @@ prompt() { [[ $iswt = true ]] || return # Refresh index so e.g. git-diff-files(1) is accurate - git update-index --refresh >/dev/null + git update-index --refresh >/dev/null 2>&1 # Find a local branch, remote branch, or tag (annotated or not), or # failing all of that just show the short commit ID, in that order -- cgit v1.2.3