tmux-network
Display your public and private IP addresses in the tmux status bar.
Installation
Add this plugin to your ~/.tmux.conf:
set -g @plugin 'tmux-contrib/tmux-network'And install it by running <prefix + I.
Usage
Add the format strings to your status bar:
set -g status-right "#{network_private_ip} | #{network_public_ip}"Format Strings
| Format String | Description | |-------------------------|------------------------------------------| | #{networkpublicip} | Public IP address (from ip-api.com) | | #{networkprivateip} | Private IP address (from en0 interface) |
Development
Prerequisites
Install dependencies using Nix:
nix developOr install manually: bash, tmux, bats
Running Tests
bats tests/