mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
pull upstream changes from gitstatus
This commit is contained in:
parent
b394a601a0
commit
072f7be8ff
1 changed files with 2 additions and 2 deletions
|
@ -319,7 +319,7 @@ function gitstatus_start() {
|
|||
local arch && arch=$(uname -m) && [[ -n $arch ]]
|
||||
|
||||
local daemon=${GITSTATUS_DAEMON:-$dir/bin/gitstatusd-${os:l}-${arch:l}}
|
||||
[[ -f $daemon ]]
|
||||
[[ -x $daemon ]]
|
||||
|
||||
lock_file=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.lock.XXXXXXXXXX)
|
||||
zsystem flock -f lock_fd $lock_file
|
||||
|
@ -367,7 +367,7 @@ function gitstatus_start() {
|
|||
fi
|
||||
echo -nE $'bye\x1f0\x1e'"
|
||||
local setsid=${commands[setsid]:-/usr/local/opt/util-linux/bin/setsid}
|
||||
[[ -f $setsid ]] && setsid=${(q)setsid} || setsid=
|
||||
[[ -x $setsid ]] && setsid=${(q)setsid} || setsid=
|
||||
cmd="cd /; $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
|
||||
|
|
Loading…
Reference in a new issue