From 10df9db9bcb24b0912b72e5ade1bfdbf4af2745f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 15 Oct 2016 16:29:49 +1300 Subject: Correct check of --is-work-tree test --- 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 e707f188..ca5ecf3e 100644 --- a/zsh/zshrc.d/prompt.zsh +++ b/zsh/zshrc.d/prompt.zsh @@ -61,7 +61,7 @@ prompt() { { # Bail if we're not in a work tree--or, implicitly, if we don't # have git(1). - [[ -n $(git rev-parse --is-inside-work-tree) ]] || + [[ $(git rev-parse --is-inside-work-tree) == true ]] || return # Refresh index so e.g. git-diff-files(1) is accurate -- cgit v1.2.3