diff --git a/neofetch b/neofetch index 671eb7ea..66d6c330 100755 --- a/neofetch +++ b/neofetch @@ -1356,6 +1356,13 @@ get_memory() { mem_free="$((mem_stat[5] / 1024))" mem_used="$((mem_total - mem_free))" ;; + + "HP-UX") + # Partial support. Again, hppa and IA64 have a different + # command of how to access this. And they need root for + # some rason. + mem_free="$(($(vmstat | awk 'NR==3{printf $5}') / 1024))" + ;; esac memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"