summaryrefslogtreecommitdiff
path: root/gitstatus/gitstatus.plugin.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-11 02:30:14 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-11 02:30:14 +0300
commit0061264f57735fc34f9f0f4d7a07f805ff7e8087 (patch)
tree1422e1bf8afebfabd93c3fe3eccf7c1f7d6bd69b /gitstatus/gitstatus.plugin.zsh
parent0aa667dbf895aa0d9e56a8ee06b2d4b5a05af25c (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus/gitstatus.plugin.zsh')
-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 b5e71097..3f971139 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -213,7 +213,9 @@ function gitstatus_start() {
}
zle -F $resp_fd _gitstatus_process_response_${name}
- log=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.log.XXXXXXXXXX)
+ [[ ${GITSTATUS_ENABLE_LOGGING:-0} == 1 ]] &&
+ log=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.log.XXXXXXXXXX) ||
+ log=/dev/null
# We use `zsh -c` instead of plain {} or () to work around bugs in zplug. It hangs on startup.
zsh -c "