From b07d18d6d0bd96da80ce9a0573745c0fdc99ddbc Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 4 Apr 2016 22:16:54 +1000 Subject: [PATCH] Use 32-bit and 64-bit for arch --- neofetch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 13ae60eb..16e1b060 100755 --- a/neofetch +++ b/neofetch @@ -513,8 +513,12 @@ ascii_distro="$distro" getdistro () { # Get architecture - [ "$os_arch" == "on" ] && \ - distro+=" $(uname -m)" + [ "$os_arch" == "on" ] + case "$(getconf LONG_BIT)" in + 64) distro+=" 64-bit" ;; + 32) distro+=" 32-bit" ;; + esac + fi }