aboutsummaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-15 23:18:06 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-15 23:18:06 +0300
commita24abeb33bac9d65f46bc9563bd52b5d67e9addb (patch)
tree33c34d7ad489c18bee2fd6ef14121b710866684a /gitstatus
parente413af55bb4db18f43c6ac41ce045b4afd9a5f88 (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rw-r--r--gitstatus/gitstatus.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index 8b1acd5f..966b24be 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -231,7 +231,7 @@ function gitstatus_start() {
zsh -c "
${(q)daemon} --parent-pid=$$ --dirty-max-index-size=${(q)max_dirty} --num-threads=$threads
echo -nE $'bye\x1f0\x1e'
- rm -f ${(q)req_fifo} ${(q)resp_fifo}
+ command rm -f ${(q)req_fifo} ${(q)resp_fifo}
" <&$req_fd >&$resp_fd 2>$log &!
daemon_pid=$!
@@ -251,7 +251,7 @@ function gitstatus_start() {
local req_fifo=${(P)req_fifo_var}
local resp_fifo=${(P)resp_fifo_var}
[[ $daemon_pid -ge 0 ]] && kill -- -$daemon_pid &>/dev/null
- rm -f $req_fifo $resp_fifo
+ command rm -f $req_fifo $resp_fifo
}
add-zsh-hook zshexit _gitstatus_cleanup_${name}
}
@@ -269,7 +269,7 @@ function gitstatus_start() {
[[ $daemon_pid -ge 0 ]] && kill -- -$daemon_pid &>/dev/null || true
[[ $req_fd -ge 0 ]] && exec {req_fd}>&- || true
[[ $resp_fd -ge 0 ]] && { zle -F $resp_fd || true } && { exec {resp_fd}>&- || true}
- rm -f $req_fifo $resp_fifo
+ command rm -f $req_fifo $resp_fifo
return 1
}
}