mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
Squashed 'gitstatus/' changes from 830aaa999..3050dfca8
3050dfca8 add `command` in front of commands git-subtree-dir: gitstatus git-subtree-split: 3050dfca875a8070aaa0dc890afcc756574078c6
This commit is contained in:
parent
b93f9663c5
commit
a3c1b7164b
2 changed files with 10 additions and 10 deletions
|
|
@ -76,7 +76,7 @@ function gitstatus_start() {
|
|||
[[ -n "$log_level" || "${GITSTATUS_ENABLE_LOGGING:-0}" != 1 ]] || log_level=INFO
|
||||
|
||||
local uname_sm
|
||||
uname_sm="$(uname -sm)" || return
|
||||
uname_sm="$(command uname -sm)" || return
|
||||
uname_sm="${uname_sm,,}"
|
||||
local uname_s="${uname_sm% *}"
|
||||
local uname_m="${uname_sm#* }"
|
||||
|
|
@ -86,8 +86,8 @@ function gitstatus_start() {
|
|||
else
|
||||
local cpus
|
||||
if ! command -v sysctl &>/dev/null || [[ "$uname_s" == linux ]] ||
|
||||
! cpus="$(sysctl -n hw.ncpu)"; then
|
||||
if ! command -v getconf &>/dev/null || ! cpus="$(getconf _NPROCESSORS_ONLN)"; then
|
||||
! cpus="$(command sysctl -n hw.ncpu)"; then
|
||||
if ! command -v getconf &>/dev/null || ! cpus="$(command getconf _NPROCESSORS_ONLN)"; then
|
||||
cpus=8
|
||||
fi
|
||||
fi
|
||||
|
|
@ -104,7 +104,7 @@ function gitstatus_start() {
|
|||
--dirty-max-index-size="$max_dirty"
|
||||
$extra_flags)
|
||||
|
||||
tmpdir="$(mktemp -d "${TMPDIR:-/tmp}"/gitstatus.bash.$$.XXXXXXXXXX)" || return
|
||||
tmpdir="$(command mktemp -d "${TMPDIR:-/tmp}"/gitstatus.bash.$$.XXXXXXXXXX)" || return
|
||||
|
||||
if [[ -n "$log_level" ]]; then
|
||||
GITSTATUS_DAEMON_LOG="$tmpdir"/daemon.log
|
||||
|
|
@ -115,7 +115,7 @@ function gitstatus_start() {
|
|||
|
||||
req_fifo="$tmpdir"/req.fifo
|
||||
resp_fifo="$tmpdir"/resp.fifo
|
||||
mkfifo -- "$req_fifo" "$resp_fifo" || return
|
||||
command mkfifo -- "$req_fifo" "$resp_fifo" || return
|
||||
|
||||
{
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue