Bug: `network` module doesn't work on macOS 14.4 and later
pratnala opened this issue · 6 comments
pratnala commented
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:
- Enable network plugin in
tmux.conf
-set -g @dracula-plugins network
- Reload tmux
- See bottom right to see network name
- Nothing is shown
Expected behavior
Network name, if wireless, or Ethernet otherwise, must be shown instead of a blank space.
Screenshots
Network name must show in the blue box but is blank.
System
- OS: macOS 14.4.1
- Tmux Version: 3.2a
amitizle commented
This is the alternative to airport
;
networksetup -getairportnetwork en0 | cut -d ':' -f2 | sed 's/^[[:blank:]]*//g'