mngshm / rxfetch

A custom system info fetching tool
GNU General Public License v3.0
460 stars 40 forks source link

MacOS Pending tasks #54

Closed proffapt closed 1 year ago

proffapt commented 2 years ago
image

Wasn't able to

in the MR #53

proffapt commented 2 years ago

@Mangeshrex assign this to me :) Will be grateful for inputs from others and will also provide whatever I found to them too.. so don't hesitate to reach me out ;)

polluks commented 2 years ago

My output


./rxfetch 2>/dev/null

               os     macOS Darwin 13.0 arm64
               ker    22.1.0
     •_•       pkgs   -1, 234 brews (218 formulas & 16 casks)
     oo|       sh     zsh
    / '\'      ram    
   (\_;/)      init   launchd
               de/wm  unknown
               up    
               disk   
proffapt commented 2 years ago

My output


./rxfetch 2>/dev/null

               os     macOS Darwin 13.0 arm64
               ker    22.1.0
     •_•       pkgs   -1, 234 brews (218 formulas & 16 casks)
     oo|       sh     zsh
    / '\'      ram    
   (\_;/)      init   launchd
               de/wm  unknown
               up    
               disk   

pkgs > most probably you don't have Mac ports installed, but that should have worked in this case too.

Rest should also work because they are pre installed tools for system management in macos

proffapt commented 2 years ago

@polluks can you show me the output to

uptime

And

df -Hl | grep -w "/" | awk '{print $2}'

proffapt commented 2 years ago

Haven't tested on macOS Ventura tho, but those coreutils must not change with it anyways

polluks commented 2 years ago
$ uptime
21:55  up 1 day,  5:16, 3 users, load averages: 6,70 6,65 7,18
$ df -Hl | grep -w "/" | awk '{print $2}'
446G

BTW if you want to identify my window manager:


$ pgrep Aqua
18889
proffapt commented 2 years ago
$ uptime
21:55  up 1 day,  5:16, 3 users, load averages: 6,70 6,65 7,18
$ df -Hl | grep -w "/" | awk '{print $2}'
446G

BTW if you want to identify my window manager:

$ pgrep Aqua
18889

FIrst command's output is being altered to get the desired output and second command is getting exactly used in it. If they are working script should work too, I would recommend to re-clone the repository and try again

polluks commented 1 year ago

My current output


               os     macOS Darwin 13.2 arm64
               ker    22.3.0
     •_•       pkgs   250 brews (232 formulas & 18 casks)
     oo|       sh     zsh
./rxfetch: line 201: -1: substring expression < 0
    / '\'      ram    
   (\_;/)      init   launchd
               de/wm  unknown
./rxfetch: line 211: -1: substring expression < 0
               up    
./rxfetch: line 189: -1: substring expression < 0
               disk   
proffapt commented 1 year ago

@polluks I am on the same version of macos and it works for me.

Share the output of these commands again..

df -Hl | grep -w "/" | awk '{print $2}'
df -Hl | grep -w "/" | awk '{print $4}'

This is issue with your system, you might have configured something :shrug

polluks commented 1 year ago

zsh rxfetch works fine but no ./rxfetch! @proffapt so an interactive check is not sufficient

proffapt commented 1 year ago

zsh rxfetch works fine but no ./rxfetch! @proffapt so an interactive check is not sufficient

What do you mean by interactive check? Mhmmmm I got something which can be the issue, will check when i get on my rig

polluks commented 1 year ago

It seems to be a bash 3.2 incompatibility. It works in an interactive zsh but bash fails.

proffapt commented 1 year ago

It seems to be a bash 3.2 incompatibility. It works in an interactive zsh but bash fails.

Exactly that's what I thought.. it is using older version as well as the BSD version.

proffapt commented 1 year ago

It seems to be a bash 3.2 incompatibility. It works in an interactive zsh but bash fails.

Exactly that's what I thought.. it is using older version as well as the BSD version.

That is indeed because of old BSD version of bash, it is recommended to use latest GNU version, preferably installed using Homebrew.

proffapt commented 1 year ago

Out of my interest now, closing it as not planned