tmux-powerline icon indicating copy to clipboard operation
tmux-powerline copied to clipboard

LAN IP on Mac returns N/a despite script working as expected

Open Normanras opened this issue 1 year ago • 0 comments

So this is odd. I have the WAN IP working as expected but the LAN IP script is just returning N/a. What makes this especially odd is that I grabbed the lan_ip.sh script and pulled it apart separately from the plugin. It all works as expected. Each line does the correct thing and when run together (including the shell_is references), I get my LAN IP...

To add to the weirdness, if I strip down the script within the plugin to just echo my IP address, it still returns n/a.

Happy to debug this further, but could use some direction. Not sure where tmux isn't happy and isn't keeping the values.

EDIT: My only other thought is that tmux doesn't have access to ifconfig commands? I'm running ifstat as well without issue, but since I'm on a mac, both ifstat and tmux are installed via brew were as ifconfig is built into the kernel. Also, I've made sure the permissions in the Powerline segments folder has the script as executable.

Normanras avatar Jan 03 '24 16:01 Normanras