summaryrefslogtreecommitdiff
path: root/gitstatus/gitstatus.plugin.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-24 13:26:04 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-24 13:26:04 +0300
commitbb2f9afafea1de38196c4b5181564b6e97925fba (patch)
tree30b0be37e030c7421d0e76f1749de5dca35aaecc /gitstatus/gitstatus.plugin.zsh
parentd572fb974683123668065c5a4a778e8e57ca864f (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 615c85f6..07c36f54 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -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