A easy to use tmux configuration with basic mouse and system clipboard. This configuration aims to simplify the navigation between sessions, windows, and panes, creation of workspaces, and copy-pasting with OS integration. It tries to do this all minimally.
- Requirements
- Installation
- Key Bindings
- Recommendations
tmux version 2.9a or above
You will need to have the following items installed on your system before making use of this configuration.
-
A program to interact with the system clipboard:
- Linux: install
xsel
apt-get install xsel --no-install-recommends
- macOS:
pbcopy
- Linux: install
To enable support for the meta key and shift modifer in Terminal.app
, you will
need to do the following.
- Enable Meta key and scroll support
- Open
Terminal.app
. - Select
Terminal > Preferences
from the menu bar. - Select the
Profiles
tab from the preferences window. - In the pane on the left, select the profile marked with the text "Default" under the profile name.
- Select the
Keyboard
tab in the from the - Enable the following options from the bottom of the <>:
Use Option as Meta key
Scroll alternate screen
- Open
- Add correct keycodes for Shift modifiers.
- Select the
+
.
- Select the
C-a
: enter command mode.
C-s
: enter copy mode.
<prefix> d
: detatch from session.
<prefix> s
: list all sessions. Can also select a session to connect to by
navigating with the arrow keys and selecting with enter.
<prefix> (
: previous session
<prefix> )
: next session