From 6c957f3ba2ac7cc91f0c5dc5110f9f771a482c4a Mon Sep 17 00:00:00 2001 From: dylan araps Date: Thu, 27 Apr 2017 13:37:33 +1000 Subject: [PATCH 01/25] OS: Very early support for IRIX --- ascii/distro/irix | 19 +++++++++++++++++++ neofetch | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 ascii/distro/irix diff --git a/ascii/distro/irix b/ascii/distro/irix new file mode 100644 index 00000000..57ce2121 --- /dev/null +++ b/ascii/distro/irix @@ -0,0 +1,19 @@ +${c1} ./ohmNd/ +dNmho/- + `:+ydNMMMMMMMM.-MMMMMMMMMdyo:. + `hMMMMMMNhs/sMMM-:MMM+/shNMMMMMMh` + -NMMMMMmo-` /MMM-/MMM- `-omMMMMMN. + `.`-+hNMMMMMNhyMMM-/MMMshmMMMMMmy+...` ++mMNds:-:sdNMMMMMMMyyMMMMMMMNdo:.:sdMMm+ +dMMMMMMmy+.-/ymNMMMMMMMMNmy/-.+hmMMMMMMd +oMMMMmMMMMNds:.+MMMmmMMN/.-odNMMMMmMMMM+ +.MMMM-/ymMMMMMmNMMy..hMMNmMMMMMmy/-MMMM. + hMMM/ `/dMMMMMMMN////NMMMMMMMd/. /MMMh + /MMMdhmMMMmyyMMMMMMMMMMMMhymMMMmhdMMM: + `mMMMMNho//sdMMMMM//NMMMMms//ohNMMMMd + `/so/:+ymMMMNMMMM` mMMMMMMMmh+::+o/` + `yNMMNho-yMMMM` NMMMm.+hNMMNh` + -MMMMd: oMMMM. NMMMh :hMMMM- + -yNMMMmooMMMM- NMMMyomMMMNy- + .omMMMMMMMM-`NMMMMMMMmo. + `:hMMMMMM. NMMMMMh/` + .odNm+ /dNms. diff --git a/neofetch b/neofetch index b85745f3..cfbf56bc 100755 --- a/neofetch +++ b/neofetch @@ -43,6 +43,7 @@ get_os() { "Haiku") os="Haiku" ;; "MINIX") os="MINIX" ;; "AIX") os="AIX" ;; + "IRIX64") os="IRIX" ;; *) 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 @@ -3372,6 +3373,11 @@ get_distro_colors() { set_colors 3 7 ascii_file="solaris" ;; + + "IRIX") + set_colors 4 7 + ascii_file="irix" + ;; esac ;; esac From 54bf42f1b61b38e643aee67700f7ee71c7a70d1c Mon Sep 17 00:00:00 2001 From: dylan araps Date: Thu, 27 Apr 2017 13:51:57 +1000 Subject: [PATCH 02/25] Distro: Add support for IRIX --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index cfbf56bc..38af190b 100755 --- a/neofetch +++ b/neofetch @@ -206,6 +206,10 @@ get_distro() { "AIX") distro="AIX $(oslevel)" ;; + + "IRIX") + distro="IRIX ${kernel_version}" + ;; esac [[ -z "$distro" ]] && distro="$os (Unknown)" From 00e2006e48c44fcbc807a51ee383d495f7b96cf7 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 8 May 2017 17:38:05 +0700 Subject: [PATCH 03/25] CPU [IRIX]: Initial support --- neofetch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/neofetch b/neofetch index 38af190b..217d947a 100755 --- a/neofetch +++ b/neofetch @@ -976,6 +976,17 @@ get_cpu() { "physical") cores="$(lparstat -i | awk -F':' '/Active Physical CPUs/ {printf $2}')" esac ;; + + "IRIX") + # Get CPU name. + cpu="$(hinv -c | awk -F':' '/CPU:/ {printf $2}')" + + # Get CPU speed. + cpu="$(hinv -c | awk 'NR==1{printf $2}')" + + # Get CPU cores. + cores="$(sysconf NPROC_ONLN)" # Does this even work? + ;; esac if [[ "$speed" ]]; then @@ -1054,6 +1065,7 @@ get_cpu_usage() { "Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;; "iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;; "AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;; + "IRIX") cores="$(sysconf NPROC_ONLN)" # Does this even work? esac fi From e96d0e4cf60dad59dcc3f17b46385d5c58a37a32 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 8 May 2017 17:49:47 +0700 Subject: [PATCH 04/25] Kernel [IRIX]: Disable function --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 217d947a..a4f74770 100755 --- a/neofetch +++ b/neofetch @@ -322,8 +322,8 @@ get_title() { } get_kernel() { - # Since AIX is an integrated system, it's better to skip this function altogether - [[ "$os" == "AIX" ]] && return + # Since these OSes are integrated systems, it's better to skip this function altogether + [[ "$os" =~ (AIX|IRIX) ]] && return case "$kernel_shorthand" in "on") kernel="$kernel_version" ;; From a3af0a3f3e6e81571c0c52c9dfd1c99b42f0f1ec Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 8 May 2017 17:59:48 +0700 Subject: [PATCH 05/25] Uptime [IRIX]: Use AIX method --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index a4f74770..4b2bf7d3 100755 --- a/neofetch +++ b/neofetch @@ -371,7 +371,7 @@ get_uptime() { seconds="${seconds/.*}" ;; - "AIX") + "AIX" | "IRIX") t="$(LC_ALL=POSIX ps -o etime= -p 1)" d="0" h="0" case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac From 05171be3a16e192fef439ff669bd1279d3106b88 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 8 May 2017 22:12:03 +0700 Subject: [PATCH 06/25] Local IP [IRIX]: Added initial support --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4b2bf7d3..ac96137f 100755 --- a/neofetch +++ b/neofetch @@ -1936,7 +1936,7 @@ get_battery() { get_local_ip() { case "$os" in - "Linux" | "BSD" | "Solaris" | "AIX") + "Linux" | "BSD" | "Solaris" | "AIX" | "IRIX") local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')" local_ip="${local_ip/uid*}" [[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')" From ff3f0198d7cd193603ae6404ba37f60c45d0da6e Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 10 May 2017 23:35:38 +0700 Subject: [PATCH 07/25] Disk: Separate IRIX detection from the rest of the OS --- neofetch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index ac96137f..d477d7ef 100755 --- a/neofetch +++ b/neofetch @@ -1808,6 +1808,7 @@ get_disk() { "Haiku") err "Disk doesn't work on Haiku due to the non-standard 'df'"; return ;; "Mac OS X") df_flags=(-P -h) ;; "AIX") df_flags=(-P -g) ;; + "IRIX") df_flags=(-P -k) ;; *) df_flags=(-h) ;; esac @@ -1827,7 +1828,15 @@ get_disk() { disk_info=($disk) disk_perc="${disk_info[4]/'%'}" - disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" + case "$os" in + "IRIX") + disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" + ;; + + *) + disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" + ;; + esac # Subtitle. case "$disk_subtitle" in From ea1f853c2a90cbece44ef7c013e7edd474d0681d Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 12 May 2017 23:31:38 +0700 Subject: [PATCH 08/25] Disk: Detect df version instead of detecting df per OS --- neofetch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/neofetch b/neofetch index d477d7ef..de11ce83 100755 --- a/neofetch +++ b/neofetch @@ -1803,13 +1803,13 @@ get_disk() { type -p df >/dev/null 2>&1 || \ { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; } - # Get "df" flags. - case "$os" in - "Haiku") err "Disk doesn't work on Haiku due to the non-standard 'df'"; return ;; - "Mac OS X") df_flags=(-P -h) ;; - "AIX") df_flags=(-P -g) ;; - "IRIX") df_flags=(-P -k) ;; - *) df_flags=(-h) ;; + # Get "df" version. + df_version="$(df --version 2>&1)" + case "$df_version" in + *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku + # AIX unknown + # IRIX unknown + *) df_flags=(-P -h) ;; esac # Create an array called 'disks' where each element is a separate line from @@ -1828,8 +1828,8 @@ get_disk() { disk_info=($disk) disk_perc="${disk_info[4]/'%'}" - case "$os" in - "IRIX") + case "$df_version" in + "IRIX") # To be changed disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" ;; From 2212cab6880250bfb8cc5645504f0b7a554f1f2a Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sat, 13 May 2017 11:36:30 +0700 Subject: [PATCH 09/25] Disk [AIX df]: Add version detection --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index de11ce83..bc2c3f9f 100755 --- a/neofetch +++ b/neofetch @@ -1807,7 +1807,7 @@ get_disk() { df_version="$(df --version 2>&1)" case "$df_version" in *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku - # AIX unknown + *"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested # IRIX unknown *) df_flags=(-P -h) ;; esac From d0cb265517aac47c363efc06123e4d662bd929a9 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 15 May 2017 21:18:31 +0700 Subject: [PATCH 10/25] Install Date [IRIX]: Added initial support --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index bc2c3f9f..099947da 100755 --- a/neofetch +++ b/neofetch @@ -2004,7 +2004,7 @@ get_install_date() { esac ;; "Haiku") install_file="/boot" ;; - "BSD" | "MINIX") + "BSD" | "MINIX" | "IRIX") case "$kernel_name" in "FreeBSD") install_file="/etc/hostid" ;; "NetBSD" | "DragonFly"*) install_file="/etc/defaults/rc.conf" ;; @@ -2020,7 +2020,7 @@ get_install_date() { *"crtime"*) install_date="$(ls -tdcE "$install_file" | awk '{printf $6 " " $7}')" ;; # xpg4 (Solaris) *"ACFHLRSZ"*) install_date="$(ls -dl "$install_file" | awk '{printf $6 " " $7}')" ;; # Toybox *"GNU coreutils"*) install_date="$(ls -tcd --full-time "$install_file" | awk '{printf $6 " " $7}')" ;; - *"ACFHLNRS"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX ls + *"ACFHLNRS"* | *"RadC1xmnlog"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX ls / IRIX ls *) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;; esac From 928bb6296d02a06abfce557dc00e1dbaa35236c9 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 14:47:35 +0700 Subject: [PATCH 11/25] Disk [IRIX]: Added support --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 099947da..97d6151a 100755 --- a/neofetch +++ b/neofetch @@ -1808,7 +1808,7 @@ get_disk() { case "$df_version" in *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku *"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested - # IRIX unknown + *"befhikm"*) df_flags=(-P -k) ;; # IRIX *) df_flags=(-P -h) ;; esac @@ -1829,7 +1829,7 @@ get_disk() { disk_perc="${disk_info[4]/'%'}" case "$df_version" in - "IRIX") # To be changed + *"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" ;; From 2fcbc778f105c179cd28bdd6b1a0ff9c9d99f249 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 14:58:47 +0700 Subject: [PATCH 12/25] Memory [IRIX]: Added initial support --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index 97d6151a..918c4c24 100755 --- a/neofetch +++ b/neofetch @@ -1295,6 +1295,13 @@ get_memory() { mem_used="$((mem_total - mem_free))" mem_label="MB" ;; + + "IRIX") + mem_stat=($(pmem | head -1)) + mem_total="$((${mem_stat[3]} / 1024))" + mem_free="$((${mem_stat[5]} / 1024))" + mem_used="$((mem_total - mem_free))" + ;; esac memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}" From 2b5926292815b12d1dc5dfa1f439b957934acb07 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 15:04:26 +0700 Subject: [PATCH 13/25] Memory [IRIX]: Shellcheck compliance --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 918c4c24..81f8b736 100755 --- a/neofetch +++ b/neofetch @@ -1298,8 +1298,8 @@ get_memory() { "IRIX") mem_stat=($(pmem | head -1)) - mem_total="$((${mem_stat[3]} / 1024))" - mem_free="$((${mem_stat[5]} / 1024))" + mem_total="$((mem_stat[3] / 1024))" + mem_free="$((mem_stat[5] / 1024))" mem_used="$((mem_total - mem_free))" ;; esac From 0b77804a65a269e3d4a1d25586839e37571271a6 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 15:08:09 +0700 Subject: [PATCH 14/25] Packages [IRIX]: Added initial support --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 81f8b736..2b2fd13c 100755 --- a/neofetch +++ b/neofetch @@ -537,6 +537,10 @@ get_packages() { packages="$(lslpp -J -l -q | grep -cv '^#')" packages="$((packages+=$(rpm -qa | wc -l)))" ;; + + "IRIX") + packages="$(($(versions -b | wc -l)-3))" + ;; esac ((packages == 0)) && unset packages From 7f173060806f53a1a0c116a36efcfa7e65fe3d7b Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 22 May 2017 16:50:24 +0700 Subject: [PATCH 15/25] CPU [IRIX]: Fix CPU speed.... kinda. --- neofetch | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 2b2fd13c..7f6c404a 100755 --- a/neofetch +++ b/neofetch @@ -983,13 +983,18 @@ get_cpu() { "IRIX") # Get CPU name. - cpu="$(hinv -c | awk -F':' '/CPU:/ {printf $2}')" + cpu="$(hinv -c processor | awk -F':' '/CPU:/ {printf $2}')" # Get CPU speed. - cpu="$(hinv -c | awk 'NR==1{printf $2}')" + cpu="$(hinv -c processor | awk '/MHZ/ {printf $2}')" + + # Note: This is an inaccurate way to count CPU speed. + # Most of them use MHZ, I'm yet to see if they have + # anything above 1 GHZ. So this will have to do as a + # place holder. # Get CPU cores. - cores="$(sysconf NPROC_ONLN)" # Does this even work? + cores="$(sysconf NPROC_ONLN)" ;; esac @@ -1069,7 +1074,7 @@ get_cpu_usage() { "Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;; "iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;; "AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;; - "IRIX") cores="$(sysconf NPROC_ONLN)" # Does this even work? + "IRIX") cores="$(sysconf NPROC_ONLN)" esac fi From 86b309aeef203c784ac2ee315fbdb4a5cebc99c0 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 22 May 2017 22:16:37 +0700 Subject: [PATCH 16/25] CPU [IRIX]: Removed note Well, nevermind. Turns out I read the code the wrong way... --- neofetch | 5 ----- 1 file changed, 5 deletions(-) diff --git a/neofetch b/neofetch index 7f6c404a..49212352 100755 --- a/neofetch +++ b/neofetch @@ -988,11 +988,6 @@ get_cpu() { # Get CPU speed. cpu="$(hinv -c processor | awk '/MHZ/ {printf $2}')" - # Note: This is an inaccurate way to count CPU speed. - # Most of them use MHZ, I'm yet to see if they have - # anything above 1 GHZ. So this will have to do as a - # place holder. - # Get CPU cores. cores="$(sysconf NPROC_ONLN)" ;; From b88e86e8562fd7404baf934e0c463ea5d0aba1be Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 24 May 2017 11:42:38 +0700 Subject: [PATCH 17/25] Disk [IRIX]: Fewer LoCs --- neofetch | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 49212352..6f8e8bab 100755 --- a/neofetch +++ b/neofetch @@ -1840,13 +1840,8 @@ get_disk() { disk_perc="${disk_info[4]/'%'}" case "$df_version" in - *"befhikm"*) - disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" - ;; - - *) - disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" - ;; + *"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" ;; + *) disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" ;; esac # Subtitle. From 6cb37b91a71776417049d0d263aea8ba98ab51d9 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 24 May 2017 11:48:08 +0700 Subject: [PATCH 18/25] CPU [IRIX]: Fix speed --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6f8e8bab..1c7b64ce 100755 --- a/neofetch +++ b/neofetch @@ -986,7 +986,7 @@ get_cpu() { cpu="$(hinv -c processor | awk -F':' '/CPU:/ {printf $2}')" # Get CPU speed. - cpu="$(hinv -c processor | awk '/MHZ/ {printf $2}')" + speed="$(hinv -c processor | awk '/MHZ/ {printf $2}')" # Get CPU cores. cores="$(sysconf NPROC_ONLN)" From 4364e67d6ccef059d95046bd97d338de9d968f4a Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 24 May 2017 12:00:44 +0700 Subject: [PATCH 19/25] Kernel [IRIX]: Better words --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 1c7b64ce..3491f5c3 100755 --- a/neofetch +++ b/neofetch @@ -322,7 +322,7 @@ get_title() { } get_kernel() { - # Since these OSes are integrated systems, it's better to skip this function altogether + # Since these OS are integrated systems, it's better to skip this function altogether [[ "$os" =~ (AIX|IRIX) ]] && return case "$kernel_shorthand" in From fd8f5145cbba314d6f03616065d5f49a05c7ae3d Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 9 Jun 2017 23:20:01 +0700 Subject: [PATCH 20/25] Disk [AIX df]: Changed df versioning detection --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3491f5c3..fa0b2493 100755 --- a/neofetch +++ b/neofetch @@ -1818,7 +1818,7 @@ get_disk() { df_version="$(df --version 2>&1)" case "$df_version" in *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku - *"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested + *"IMitv"*) df_flags=(-P -g) ;; # AIX *"befhikm"*) df_flags=(-P -k) ;; # IRIX *) df_flags=(-P -h) ;; esac From 3b82a89c248661cff51a44e4e78189ee3e09747c Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sat, 10 Jun 2017 13:27:23 +0700 Subject: [PATCH 21/25] Distro [IRIX]: use -p for machine_arch --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 503fda16..7ba07634 100755 --- a/neofetch +++ b/neofetch @@ -223,7 +223,7 @@ get_distro() { # Get OS architecture. if [[ "$os_arch" == "on" ]]; then case "$os" in - "Solaris" | "AIX" | "BSD" | "Haiku") machine_arch="$(uname -p)" ;; + "Solaris" | "AIX" | "BSD" | "Haiku" | "IRIX") machine_arch="$(uname -p)" ;; *) machine_arch="$(uname -m)" ;; esac From 38f0ac6a84ca77846340831359f7099739c97902 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 20 Jun 2017 20:37:32 +0700 Subject: [PATCH 22/25] Disk [IRIX]: Fix Total Disk appears like used ones --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 7ba07634..f017b42d 100755 --- a/neofetch +++ b/neofetch @@ -1898,7 +1898,7 @@ get_disk() { disk_perc="${disk_info[4]/'%'}" case "$df_version" in - *"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" ;; + *"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[1]/1024/1024))G (${disk_perc}%)" ;; *) disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" ;; esac From 0b54a97c043b61091418d563013954e3e50a3856 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 20 Jun 2017 20:45:00 +0700 Subject: [PATCH 23/25] Misc: Add /usr/etc to PATH It seems IRIX needs to access /usr/etc to be able to access ifconfig. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index f017b42d..69c5ed65 100755 --- a/neofetch +++ b/neofetch @@ -20,8 +20,8 @@ old_ifs="$IFS" export LC_ALL=C export LANG=C -# Add /usr/xpg4/bin, /usr/sbin, and /sbin to PATH. -export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:${PATH}" +# Add /usr/xpg4/bin, /usr/sbin, /sbin, and /usr/etc to PATH. +export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:${PATH}" # Set no case match. shopt -s nocasematch From 2837d9bed1fa6847b7a023be211fc4bcc3a7a4c6 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 20 Jun 2017 20:48:16 +0700 Subject: [PATCH 24/25] ASCII: Fix ASCII not appearing in IRIX64 systems --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 69c5ed65..3004bb2c 100755 --- a/neofetch +++ b/neofetch @@ -3486,7 +3486,7 @@ get_distro_colors() { ascii_file="solaris" ;; - "IRIX") + "IRIX"*) set_colors 4 7 ascii_file="irix" ;; From 3c03a8379ea27a694264786aafe3c536286715d5 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 20 Jun 2017 20:48:56 +0700 Subject: [PATCH 25/25] CPU [IRIX]: Remove unneeded output --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 3004bb2c..f37bf847 100755 --- a/neofetch +++ b/neofetch @@ -1046,6 +1046,7 @@ get_cpu() { cpu="${cpu//with Radeon * Graphics}" cpu="${cpu//, altivec supported}" cpu="${cpu//FPU*}" + cpu="${cpu//Chip Revision*}" # Trim spaces from core output cores="${cores//[[:space:]]}"