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 'jamesoff/tmux-vpn'
-
Use prefix–I to install
tmux-vpn. -
When you want to update
tmux-vpnuse prefix–U.
-
Clone the repository
$ git clone https://github.com/jamesoff/tmux-vpn ~/clone/path -
Add this line to the bottom of
.tmux.confrun-shell ~/clone/path/tmux-vpn.tmux -
Reload the
tmuxenvironment# 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