diff --git a/liquidprompt b/liquidprompt index 8eb389d..d04ef49 100755 --- a/liquidprompt +++ b/liquidprompt @@ -114,7 +114,7 @@ case "$LP_OS" in echo "$load" } ;; - FreeBSD) + FreeBSD|Darwin|OpenBSD) _lp_cpu_load () { local bol load eol # If you have problems with syntax coloring due to the following @@ -124,21 +124,6 @@ case "$LP_OS" in echo "$load" } ;; - Darwin) - _lp_cpu_load () { - local bol load eol - read bol load eol <<<$( LANG=C sysctl -n vm.loadavg ) - echo "$load" - } - LP_DWIN_KERNEL_REL_VER=$(uname -r | cut -d . -f 1) - ;; - OpenBSD) - _lp_cpu_load() { - local bol load eol - read one two three <<< `sysctl -n vm.loadavg` - echo "$load" - } - ;; SunOS) _lp_cpu_load () { LANG=C uptime | awk '{print substr($10,0,length($10))}'