From 928bb6296d02a06abfce557dc00e1dbaa35236c9 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 14:47:35 +0700 Subject: [PATCH] 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}%)" ;;