aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-03 15:29:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-03 15:29:03 +1200
commit7eabd29806d93d021f69189092dd0de1c2046f52 (patch)
treeb14891a03ea304792c0616c5b3bb10067d2fabd5 /bash
parentMore compatible branch calculation (diff)
downloaddotfiles-7eabd29806d93d021f69189092dd0de1c2046f52.tar.gz
dotfiles-7eabd29806d93d021f69189092dd0de1c2046f52.zip
Use exit values directly for these calls
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index e34d1f2a..5c29efbd 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -37,9 +37,9 @@ function prompt {
|| branch=$(git rev-parse --short HEAD 2>/dev/null ) \
|| branch='unknown'
branch=${branch##*/}
- $(git diff --quiet --ignore-submodules --cached ) \
+ git diff --quiet --ignore-submodules --cached \
|| state=${state}+
- $(git diff-files --quiet --ignore-submodules -- ) \
+ git diff-files --quiet --ignore-submodules -- \
|| state=${state}!
$(git rev-parse --verify refs/stash &>/dev/null ) \
&& state=${state}^