Using tmux, the terminal multiplexer on multiple machines
What is Tmux?
Getting started
Tmux Getting Started page on Github
Tmux Cheat Sheet & Quick Reference
Basic .tmux.conf
set -g prefix C-a
unbind C-b
bind C-a send-prefix
setw -g window-status-activity-style "fg=colour27,bg=colour234,none"
Remote .tmux.conf
set -g prefix C-f
unbind C-b
bind C-f send-prefix
setw -g window-status-activity-style "fg=colour27,bg=colour234,none"
Start tmux
tmux a -d
Tmux resurrect
Key bindings
prefix + Ctrl-s - save
prefix + Ctrl-r - restore
About
This plugin goes to great lengths to save and restore all the details from your tmux environment. Here's what's been taken care of:
Optional:
Installing TPM (Tmux Plugin Manager) , Tmux Resurrect and Tmux Continuum
git clone https://github.com/tmux-plugins/tpm.git
git clone https://github.com/tmux-plugins/tmux-resurrect.git
git clone https://github.com/tmux-plugins/tmux-continuum.git
prefix + I
Installs new plugins from GitHub or any other git repository
Refreshes TMUX environment
Create a directory ~/.tmux/resurrect/
Prefix + Ctrl-s
to save a snapshot of
your sessionPrefix + Ctrl-s
Here are the steps to restore to a previous point in time:
~/.tmux/resurrect/
ln -sf <file_name> last
Prefix + Ctrl-r
Tmux on laptop
Tmux on remote machine
Screenshot
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.