A complete solution for professional tmux setup
- One-command installation of tmux + dependencies
- Automatic configuration of optimal settings
- TPM (Tmux Plugin Manager) installation
- Smart status bar with:
- VPN status monitoring (IP display)
- Network interface tracking
- System clock
- Hostname visibility
- True color support (24-bit colors)
- Vi-style keybindings
- 100,000 line scrollback buffer
- Session persistence (auto-save/restore)
- Optimized pane/window management
# Download and execute setup script
curl -L https://raw.githubusercontent.com/yourusername/tmux-config/main/setup_tmux.sh -o setup_tmux.sh
chmod +x setup_tmux.sh
./setup_tmux.shcurl https://raw.githubusercontent.com/Kunush/tmux/refs/heads/main/tmux-config.sh | sh| Plugin | Description |
|---|---|
| TPM | Tmux Plugin Manager |
| tmux-sensible | Seamless navigation between Vim and tmux panes |
| tmux-resurrect | Persists tmux environment across system restarts |
| tmux-continuum | Auto-save sessions at regular intervals |
| Key | Action |
|---|---|
Ctrl-a |
New prefix (replaces Ctrl-b) |
Alt-arrow |
Move between panes |
Alt-j/k |
Previous/next window |
| Key | Action |
|---|---|
" |
Split vertically |
% |
Split horizontally |
Ctrl-a r |
Reload tmux configuration |
[work] | 2025-11-20 14:30 | VPN: 10.8.0.2 | ETH0: 192.168.1.100 | dev-server-
Blue: Session name
-
White: Date/time
-
Magenta: VPN status
-
Cyan: Ethernet IP
-
Green: Hostname
You can easily customize your setup by editing the configuration file: ~/.config/tmux/tmux.conf
# Example: Change status bar colors
set -g status-style bg=colour235,fg=white
# Example: Add CPU monitoring with the tmux-cpu plugin
set -g @plugin 'tmux-plugins/tmux-cpu'The configuration relies on the ip command. Check your VPN interface by running:
ip -4 addr show tun0To reinstall all plugins, delete the tpm directory and run the setup_tmux.sh script again.
rm -rf ~/.tmux/plugins/tpmThis project is licensed under the MIT License.
Β© 2025 [Kunush]