← All tools

tmux-contrib/tmux-network

Popularity 65 Updated Network & Systems

Display your public and private IP addresses in the tmux status bar

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

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 develop

Or install manually: bash, tmux, bats

Running Tests

bats tests/