mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
pull upstream changes from gitstatus
This commit is contained in:
parent
e5e6249ffd
commit
cb14b9dfc8
1 changed files with 3 additions and 2 deletions
|
@ -316,9 +316,9 @@ function gitstatus_start() {
|
|||
setopt xtrace
|
||||
}
|
||||
|
||||
local daemon=${GITSTATUS_DAEMON:-}
|
||||
local daemon=${GITSTATUS_DAEMON:-} os
|
||||
[[ -n $daemon ]] || {
|
||||
local os arch
|
||||
local arch
|
||||
os="$(uname -s)"
|
||||
[[ -n $os ]]
|
||||
[[ $os != Linux || "$(uname -o)" != Android ]] || os=Android
|
||||
|
@ -344,6 +344,7 @@ function gitstatus_start() {
|
|||
local -i threads=${GITSTATUS_NUM_THREADS:-0}
|
||||
(( threads > 0)) || {
|
||||
threads=8
|
||||
[[ -n $os ]] || { os="$(uname -s)" && [[ -n $os ]] }
|
||||
case $os in
|
||||
FreeBSD) (( ! $+commands[sysctl] )) || threads=$(( 2 * $(sysctl -n hw.ncpu) ));;
|
||||
*) (( ! $+commands[getconf] )) || threads=$(( 2 * $(getconf _NPROCESSORS_ONLN) ));;
|
||||
|
|
Loading…
Reference in a new issue