From 9a7b4c3871293a81566415bc57625aae21e7b74c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 19 Jan 2017 13:59:20 +1100 Subject: [PATCH] OS: Add initial support for HP-UX --- neofetch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 7761f0df..546ec0de 100755 --- a/neofetch +++ b/neofetch @@ -39,7 +39,8 @@ get_os() { "SunOS") os="Solaris" ;; "Haiku") os="Haiku" ;; "MINIX") os="MINIX" ;; - "AIX") os="AIX" ;; + "AIX") os="AIX" ;; + "HP-UX") os="HP-UX" ;; *) printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2 printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2 @@ -193,6 +194,10 @@ get_distro() { "AIX") distro="AIX $(oslevel)" ;; + + "HP-UX") + distro="HP-UX $kernel_version" + ;; esac [[ -z "$distro" ]] && distro="$os (Unknown)"