aboutsummaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-12-27 21:05:33 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-12-27 21:05:33 +0300
commit8baa6d3a35201eaf510e275c44db6044fbb9d1fb (patch)
treea9cb6cfd4ebe3710167cd5ca0236eee3b9df80e3 /gitstatus
parent8ef2b737d1f6099966a1eb16bdfc90d67b367f22 (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rw-r--r--gitstatus/gitstatus.plugin.zsh19
1 files changed, 17 insertions, 2 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index a54b1af9..46d0b3cc 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -544,8 +544,23 @@ function gitstatus_start() {
>&2 echo -E ''
>&2 echo -E ' Run the following command to retry with extra diagnostics:'
>&2 print -P '%F{green}'
- >&2 echo -E " GITSTATUS_LOG_LEVEL=DEBUG gitstatus_start ${(@q-)*}"
- >&2 print -nP '%f'
+ local env="GITSTATUS_LOG_LEVEL=DEBUG"
+ if [[ -n ${GITSTATUS_NUM_THREADS:-} ]]; then
+ env+=" GITSTATUS_NUM_THREADS=${(q)GITSTATUS_NUM_THREADS}"
+ fi
+ if [[ -n ${GITSTATUS_DAEMON:-} ]]; then
+ env+=" GITSTATUS_DAEMON=${(q)GITSTATUS_DAEMON}"
+ fi
+ >&2 echo -nE " ${env} gitstatus_start ${(@q-)*}"
+ >&2 print -P '%f'
+ >&2 echo -E ''
+ local zshrc='~/.zshrc'
+ [[ -n ${ZDOTDIR:-} ]] && zshrc=${(D):-$ZDOTDIR/.zshrc}
+ >&2 echo -E " If this command produces no output, add the following parameter to $zshrc:"
+ >&2 echo -E ''
+ >&2 print -P '%F{green} GITSTATUS_LOG_LEVEL=DEBUG%f'
+ >&2 echo -E ''
+ >&2 echo -E ' With this parameter, gitstatus will print additional information on error.'
fi
return 1