From e4e302afab4eba5b55ca40eecb39b68e4296eaeb Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Tue, 6 Aug 2019 10:19:40 -0600 Subject: [PATCH] Fix zsh parameter expansion for hosts requiring 'uptime' --- qi3ber2.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qi3ber2.zsh-theme b/qi3ber2.zsh-theme index 0a62f33..24bcc70 100644 --- a/qi3ber2.zsh-theme +++ b/qi3ber2.zsh-theme @@ -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} }