dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
646 stars 296 forks source link

CPU Percentage Not Displaying on MacOS #254

Open scottfwalter opened 6 months ago

scottfwalter commented 6 months ago

Describe the bug

Given this config:

set -g @dracula-show-powerline true
set -g @dracula-fixed-location "Dallas TX"
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-cpu-usage true
set -g @dracula-cpu-percent true
set -g @dracula-cpu-display-load false
set -g @dracula-time-format "%m/%d/%y %r"

it will only display the label "CPU". I played around with the script and it looks like this line is the issue:

cpucores=$(sysctl -n hw.logicalcpu)

If I replace it will full path to sysctl it works:

cpucores=$(/usr/sbin/sysctl -n hw.logicalcpu)

System

scottfwalter commented 6 months ago

I've noticed the path within the script file is only: /opt/homebrew/bin:/bin:/usr/bin and my shell's path

Theoreticallyhugo commented 2 weeks ago

this sounds like an issue related to tmux and not dracula/tmux. also maybe close due to inactivity? @ethancedwards8