Skip to content

tmux-contrib/tmux-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmux-network

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

Test Release License: MIT

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
#{network_public_ip} Public IP address (from ip-api.com)
#{network_private_ip} Private IP address (from en0 interface)

Development

Prerequisites

Install dependencies using Nix:

nix develop

Or install manually: bash, tmux, bats

Running Tests

bats tests/

Debugging

Enable trace output with the DEBUG environment variable:

DEBUG=1 /path/to/tmux-network/scripts/tmux_network.sh get-public-ip

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors