From 161e84c57cea54d416ded8cc893be6d654702141 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sat, 15 Mar 2025 10:26:28 +0100 Subject: + SunOS in prompt colours (colouring taken from 2005-age_of_oracle) --- .bash/vars.bash | 1 + 1 file changed, 1 insertion(+) (limited to '.bash/vars.bash') diff --git a/.bash/vars.bash b/.bash/vars.bash index a7bdcb5..f528479 100644 --- a/.bash/vars.bash +++ b/.bash/vars.bash @@ -28,6 +28,7 @@ done # $OSNAME if [ -r "/etc/os-release" ];then OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1)" +elif [ "$(uname -s)" == 'SunOS' ]; then OSNAME="sunos" elif [ -r "/etc/redhat-release" ];then grep -P "^Red[\ ]?[Hh]at" /etc/redhat-release >/dev/null 2>&1 && OSNAME="redhat" grep -P "^[Ff]edora" /etc/redhat-release >/dev/null 2>&1 && OSNAME="fedora" -- cgit v1.2.3