oh-my-fish / theme-qing

A theme for Oh My Fish.
MIT License
14 stars 6 forks source link

Some errors #2

Open tghelere opened 5 years ago

tghelere commented 5 years ago

What's up, guys? This theme is compatible with linux os? On my Fedora i got some errors on init:

/home/myUserFolder/.local/share/omf/themes/cyan/archey.sh: line 77: sw_vers: command not found
sysctl: cannot stat /proc/sys/machdep/cpu/brand_string: No such file or directory
/home/myUserFolder/.local/share/omf/themes/cyan/archey.sh: line 84: pmset: command not found
sysctl: cannot stat /proc/sys/hw/memsize: No such file or directory
/home/myUserFolder/.local/share/omf/themes/cyan/archey.sh: line 89: / 1024 ** 3  : syntax error: operand expected (error token is "/ 1024 ** 3  ")

          #######                      User: me
          ########                     Hostname: fed27
              #####                    Distro: OS X 
               #####                   Kernel: Linux
               ######                  Uptime: 3 days
              ########                 Shell: /bin/bash
            ###########                Terminal: xterm-256color 
           #####   #####               Terminal Size: 49 x 189
          #####     #####              CPU: 
        #####        #####             Memory: 
       #####          #####   ##       Disk: 0%
     #####             ##########      Battery: 
    #####               #######        Date: sáb set 15 14:11:11 -03 2018

line 77: distro="OS X $(sw_vers -productVersion)"

line 84: battery=$(pmset -g batt | xargs | egrep "\d+%" -o)

line 89: ram="$(( $(sysctl -n hw.memsize) / 1024 ** 3 )) GB"

szwathub commented 5 years ago

Thanks, I will fix it later.

ChristianGrimberg commented 5 years ago

I have the same errors in Linux. I comment this lines in archey.sh file and all the lines depending of this commands, and I don't have errors:

image

I forked this repo with this changes in my profile.

I investigate the solution too.

peekaboo5149 commented 2 years ago

Ubuntu user can change battery and cpu variable

battery="$(upower -i $(upower -e | grep '/battery') | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//)%" cpu=$(uname -m)