aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-10-15 16:29:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-10-15 16:29:49 +1300
commit10df9db9bcb24b0912b72e5ade1bfdbf4af2745f (patch)
tree08a785462544149eb04f0901d34188d8ae6d10d2 /zsh/zshrc.d
parentUpdate submodules (diff)
downloaddotfiles-10df9db9bcb24b0912b72e5ade1bfdbf4af2745f.tar.gz
dotfiles-10df9db9bcb24b0912b72e5ade1bfdbf4af2745f.zip
Correct check of --is-work-tree test
Diffstat (limited to 'zsh/zshrc.d')
-rw-r--r--zsh/zshrc.d/prompt.zsh2
1 files changed, 1 insertions, 1 deletions
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