Fix zsh parameter expansion for hosts requiring 'uptime'
This commit is contained in:
parent
7169598522
commit
e4e302afab
@ -12,7 +12,7 @@ function load_average {
|
||||
else
|
||||
UPTIME='/usr/ucb/uptime'
|
||||
fi
|
||||
LA=${${UPTIME[(w)-3]}%,}
|
||||
LA=${$($UPTIME)[-3]}
|
||||
fi
|
||||
printf "%05.2f\n" ${LA}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user