From e5f558c08d7d03a22382877ea5de4b65d8f9011d Mon Sep 17 00:00:00 2001 From: nojhan Date: Sun, 22 Jul 2012 22:28:50 +0200 Subject: [PATCH] default OS goes to Linux --- liquidprompt.bash | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/liquidprompt.bash b/liquidprompt.bash index 185d735..b79ff8d 100755 --- a/liquidprompt.bash +++ b/liquidprompt.bash @@ -44,12 +44,19 @@ if [ $bmajor -lt 3 ] || [ $bmajor -eq 3 -a $bminor -lt 2 ]; then fi unset bash bmajor bminor + +############### +# OS specific # +############### + +# OS detection, default to Linux +OS="Linux" case $(uname) in - "Linux" ) OS="Linux" ;; + "Linux" ) OS="Linux" ;; "FreeBSD") OS="FreeBSD" ;; esac - +# Colors declarations if [[ "$OS" == "FreeBSD" ]] ; then BLACK="\[$(tput AF 0)\]" @@ -112,13 +119,6 @@ else fi - - - -############### -# OS specific # -############### - # get cpu number __cpunum_Linux () { @@ -225,6 +225,7 @@ __host_color() echo -ne "${ret}${NO_COL}" } + ################ # Related jobs # ################