Display VPN status in tmux
status bar.
Supports:
- macOS
The easiest way to install tmux-vpn
is via the Tmux Plugin
Manager.
-
Add plugin to the list of TPM plugins in
.tmux.conf
:set -g @plugin 'davidfsmith/tmux-vpn'
-
Use prefix–I to install
tmux-vpn
. -
When you want to update
tmux-vpn
use prefix–U.
-
Clone the repository
$ git clone https://github.com/davidfsmith/tmux-vpn ~/clone/path
-
Add this line to the bottom of
.tmux.conf
run-shell ~/clone/path/tmux-vpn.tmux
-
Reload the
tmux
environment# type this inside tmux $ tmux source-file ~/.tmux.conf
This plugin is hard-coded to check if the gpd0 interface is up.
Edit your status-left
or status-right
setting to include one of:
#{vpn}
- display the vpn status
Reload your configuration for it to take effect: prefix-R with TPM, or
$ tmux source-file ~/.tmux.conf