1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

pull upstream changes from gitstatus

This commit is contained in:
romkatv 2019-05-01 22:42:02 +02:00
parent 41d741fb1f
commit 2d6a5f84bb

View file

@ -256,9 +256,10 @@ function gitstatus_start() {
} }
zle -F $resp_fd _gitstatus_process_response_${name} zle -F $resp_fd _gitstatus_process_response_${name}
typeset -g GITSTATUS_DAEMON_LOG_${name}=/dev/null [[ ${GITSTATUS_ENABLE_LOGGING:-0} == 1 ]] &&
[[ ${GITSTATUS_ENABLE_LOGGING:-0} != 1 ]] || log_file=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.log.XXXXXXXXXX) ||
typeset GITSTATUS_DAEMON_LOG_${name}=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.log.XXXXXXXXXX) log_file=/dev/null
typeset -g GITSTATUS_DAEMON_LOG_${name}=$log_file
local -i threads=${GITSTATUS_NUM_THREADS:-0} local -i threads=${GITSTATUS_NUM_THREADS:-0}
(( threads > 0)) || { (( threads > 0)) || {
@ -277,7 +278,7 @@ function gitstatus_start() {
--num-threads=$threads \ --num-threads=$threads \
--dirty-max-index-size=$max_dirty --dirty-max-index-size=$max_dirty
echo -nE $'bye\x1f0\x1e' echo -nE $'bye\x1f0\x1e'
" <&$req_fd >&$resp_fd 2>$GITSTATUS_DAEMON_LOG_${name} 3<$lock_file &! " <&$req_fd >&$resp_fd 2>$log_file 3<$lock_file &!
daemon_pid=$! daemon_pid=$!
command rm -f $lock_file command rm -f $lock_file