Fix zsh parameter expansion for hosts requiring 'uptime'

This commit is contained in:
Orien Vandenbergh 2019-08-06 10:19:40 -06:00
parent 7169598522
commit e4e302afab

View File

@ -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}
}