diff options
author | mail_redacted_for_web | 2025-03-15 10:26:28 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2025-03-15 10:26:28 +0100 |
commit | 161e84c57cea54d416ded8cc893be6d654702141 (patch) | |
tree | d0a35e43a0ab3227444ab90ef435cc78ff49a6db /.bash/vars.bash | |
parent | 001b9cb2ccc045549ddcef8f08ad436582185fb6 (diff) | |
download | dotfiles-161e84c57cea54d416ded8cc893be6d654702141.tar.bz2 |
+ SunOS in prompt colours (colouring taken from 2005-age_of_oracle)v1.2.3
Diffstat (limited to '.bash/vars.bash')
-rw-r--r-- | .bash/vars.bash | 1 |
1 files changed, 1 insertions, 0 deletions
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" |