Skip to content

Add Linux support for rate-limits, network, and weather modules#2

Open
Jvery wants to merge 1 commit intopstuart:mainfrom
Jvery:feature/linux-support
Open

Add Linux support for rate-limits, network, and weather modules#2
Jvery wants to merge 1 commit intopstuart:mainfrom
Jvery:feature/linux-support

Conversation

@Jvery
Copy link

@Jvery Jvery commented Feb 6, 2026

Summary

  • Add cross-platform helpers (_is_macos, _stat_mtime, _stat_size, _parse_iso_date) in rate-limits module to replace macOS-specific commands
  • Support reading OAuth credentials from ~/.claude/.credentials.json on Linux (instead of macOS Keychain)
  • Fix stat command usage in network and weather modules to work on both macOS and Linux

Changes

  • modules/rate-limits.sh: Cross-platform stat/date helpers, Linux credential file support
  • modules/network.sh: Platform-aware stat for WAN IP cache age
  • modules/weather.sh: Platform-aware stat for weather cache age

Test plan

  • Verify rate-limits module works on macOS (Keychain path)
  • Verify rate-limits module works on Linux (credentials.json path)
  • Verify network module cache works on both platforms
  • Verify weather module cache works on both platforms
  • Run full statusline on Linux to confirm no stat errors

The rate-limits module was macOS-only (Keychain token retrieval,
macOS-specific stat/date flags), causing "5h:-- 7d:--" on Linux.
Add cross-platform helpers and read credentials from
~/.claude/.credentials.json on Linux. Fix stat and date commands
in network and weather modules for Linux compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant