Configuration
Tmux Configuration
You can configure Tmux via the ~/.tmux.conf
file. If it doesn’t exist, create it:
$ touch ~/.tmux.conf
To reload Tmux with the new settings:
$ tmux source-file ~/.tmux.conf
Custom Keystrokes
Add these commands to ~/.tmux.conf
to modify Tmux function keys. Each command spans two lines. The unbind command deactivates the default key combination.
COMMAND | DESCRIPTION |
| Change key combination to split window into two horizontal panes: Replace default Ctrl+b " with Ctrl+b – (hyphen) |
| Change key combination to split window into two vertical panes: Replace default Ctrl+b % with Ctrl+b |
| Replace trigger key combination Ctrl+b with Ctrl+a |
Making Tmux Copy Mode to default to vi keys
COMMAND | DESCRIPTION |
| Use vi keys in the buffer |
Customization
The following commands are for customizing the status bar at the bottom of a Tmux window:
COMMAND | DESCRIPTION |
| Aligns the names of Tmux windows left/center/right |
| Replaces name of current session with ‘...’ in status bar |
| Formats the window names as follows:
Default window formatting:
Variables:
|
Last updated