dracula/tmux

Bug: `network` module doesn't work on macOS 14.4 and later

pratnala opened this issue · 6 comments

Describe the bug

The airport command has been deprecated on macOS 14.4. This leads to the network module not working as intended.

To Reproduce

Steps to reproduce the behavior:

  1. Enable network plugin in tmux.conf - set -g @dracula-plugins network
  2. Reload tmux
  3. See bottom right to see network name
  4. Nothing is shown

Expected behavior

Network name, if wireless, or Ethernet otherwise, must be shown instead of a blank space.

Screenshots

Screenshot 2024-04-01 at 10 28 54 AM

Network name must show in the blue box but is blank.

System

  • OS: macOS 14.4.1
  • Tmux Version: 3.2a

This is the alternative to airport;

networksetup -getairportnetwork en0 | cut -d ':' -f2 | sed 's/^[[:blank:]]*//g'

Checked in #259 thanks to @amitizle's suggestion