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

pull upstream changes from gitstatus

This commit is contained in:
romkatv 2019-07-24 12:26:04 +02:00
parent d572fb9746
commit bb2f9afafe

View file

@ -356,7 +356,9 @@ function gitstatus_start() {
${(q)daemon}-static $daemon_args
fi
echo -nE $'bye\x1f0\x1e'"
cmd="${commands[setsid]:-} zsh -dfxc ${(q)cmd} &!"
local setsid=${commands[setsid]:-/usr/local/opt/util-linux/bin/setsid}
[[ -f $setsid ]] && setsid=${(q)setsid} || setsid=
cmd="$setsid zsh -dfxc ${(q)cmd} &!"
# We use `zsh -c` instead of plain {} or () to work around bugs in zplug. It hangs on startup.
# Double fork is to daemonize. Some macOS users had issues when gitstatusd was a child process
# of the interactive zsh. For example, https://github.com/romkatv/powerlevel10k/issues/123