diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-03 15:29:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-03 15:29:03 +1200 |
commit | 7eabd29806d93d021f69189092dd0de1c2046f52 (patch) | |
tree | b14891a03ea304792c0616c5b3bb10067d2fabd5 /bash | |
parent | More compatible branch calculation (diff) | |
download | dotfiles-7eabd29806d93d021f69189092dd0de1c2046f52.tar.gz dotfiles-7eabd29806d93d021f69189092dd0de1c2046f52.zip |
Use exit values directly for these calls
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 4 |
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}^ |