aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc.d/prompt.bash2
-rw-r--r--zsh/zshrc.d/prompt.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 856e20e6..906b730b 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -93,7 +93,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
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