aboutsummaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-11 09:13:35 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-11 09:13:35 +0300
commit247d7590e3df7b13ff4356afc30ef617661090e3 (patch)
tree6c5e4b066a85b3c5758c6626792d286745dd091a /gitstatus
parentc9622cb5eca7ea9a78a86f9a8f46614dc3f2b1ce (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rw-r--r--gitstatus/gitstatus.plugin.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index c7e51efa..edf3a105 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -327,7 +327,9 @@ function gitstatus_start() {
# We use `zsh -c` instead of plain {} or () to work around bugs in zplug. It hangs on startup.
zsh -dfxc "
${(q)daemon} $daemon_args
- if [[ \$? == 127 && -z ${(q)GITSTATUS_DAEMON:-} && -f ${(q)daemon}-static ]]; then
+ if [[ \$? != (0|10) && \$? -le 128 &&
+ -z ${(q)GITSTATUS_DAEMON:-} &&
+ -f ${(q)daemon}-static ]]; then
${(q)daemon}-static $daemon_args
fi
echo -nE $'bye\x1f0\x1e'