From a00de370c58fe2c18a49944821e113617caff1c4 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 30 Jul 2012 21:22:16 +0200 Subject: [PATCH] less indirections, directly call FreeBSD primitives --- liquidprompt.bash | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/liquidprompt.bash b/liquidprompt.bash index b6d2591..17080a5 100755 --- a/liquidprompt.bash +++ b/liquidprompt.bash @@ -74,7 +74,7 @@ OS="Linux" case $(uname) in "Linux" ) OS="Linux" ;; "FreeBSD") OS="FreeBSD" ;; - "Darwin") OS="Darwin" ;; + "Darwin") OS="FreeBSD" ;; "DragonFly") OS="FreeBSD" ;; "SunOS") OS="SunOS" ;; esac @@ -153,11 +153,6 @@ __cpunum_FreeBSD() sysctl -n hw.ncpu } -__cpunum_Darwin() -{ - __cpunum_FreeBSD -} - __cpunum_SunOS() { kstat -m cpu_info | grep "module: cpu_info" | wc -l @@ -180,11 +175,6 @@ __load_FreeBSD() echo -n "$load" } -__load_Darwin() -{ - __load_FreeBSD -} - __load_SunOS() { load=$(LANG=C uptime | awk '{print $10}'| sed -e 's/,//')