{"repo":"luyangkk/powerlens","free":true,"listed":false,"github":"https://github.com/luyangkk/powerlens","clone":"git clone https://github.com/luyangkk/powerlens.git","description":"Real-time macOS system metrics (power, battery, CPU, temp, fan, memory, network) in your zsh RPROMPT","language":"Shell","stars":72,"topics":["cli","go","macos","oh-my-zsh","plugin","prompt","system-monitor","terminal","zsh"],"license":"MIT","category":"cli-tools","readme_excerpt":"PowerLens ⚡ Real-time system metrics in your zsh right prompt — power, battery, CPU, CPU temp, fan speed, memory, and network I/O, glanceable at a glance. PowerLens is a lightweight zsh prompt plugin that embeds live system metrics into RPROMPT . It works with Oh My Zsh or plain zsh. A single background daemon collects all data every 2 seconds; the prompt reads a cached JSON file on each precmd — adding less than 5ms to prompt render time regardless of how many terminal windows you have open. --- Features --- --- 7 metrics Power (W) · Battery % · CPU % · CPU temp °C · Fan speed RPM · Memory % · Network ↑↓ MB/s Two color modes multi — 4-level gradient per metric / alert — neutral until threshold Two display modes compact — abbreviated values / full — with units and decimals Per-metric toggles Show or hide any metric independently Singleton daemon N terminal windows → 1 daemon process, never more Crash recovery Stale data ( 10s) auto-detected; daemon restarted silently macOS 12+ Apple Silicon (arm64) and Intel (amd64), no sudo required --- Color Reference Each metric is colored independently. Thresholds are fully configurable. --- Installation Install or update with one command: The first run installs PowerLens; later runs update the existing installation from the repository's main branch. The installer detects Oh My Zsh or plain zsh, configures /.zshrc , and avoids adding duplicate PowerLens entries. It requires macOS, git , zsh , and curl . Start a fresh zsh session when it f","default_branch":null,"files":null,"tree":[],"storefront":"/r/luyangkk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/luyangkk/powerlens/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}