summaryrefslogtreecommitdiff
path: root/gitstatus/gitstatus.plugin.zsh
diff options
context:
space:
mode:
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 "