<p>Using tmux, the terminal multiplexer on multiple machines</p>
<ul>
<li>Terminal is ROXTerm</li>
<li>Uncheck 'Show Menubar'</li>
</ul>
<p><a href="https://realh.github.io/roxterm/en/index.html"
title="ROXTerm on Github">ROXTerm on Github</a></p>
<p>What is Tmux?</p>
<p><a href="https://github.com/tmux/tmux/wiki"
title="Tmux wiki on Github">Tmux wiki on Github</a></p>
<p>Getting started</p>
<p><a href="https://github.com/tmux/tmux/wiki/Getting-Started"
title="Tmux Getting Started page on Github">Tmux Getting Started page on
Github</a></p>
<p>Tmux Cheat Sheet &amp; Quick Reference</p>
<p><a href="https://tmuxcheatsheet.com" title="Tmux Cheat Sheet">Tmux
Cheat Sheet</a></p>
<p>Basic .tmux.conf</p>
<pre><code>set -g prefix C-a
unbind C-b
bind C-a send-prefix
setw -g window-status-activity-style &quot;fg=colour27,bg=colour234,none&quot;</code></pre>
<p>Remote .tmux.conf</p>
<pre><code>set -g prefix C-f
unbind C-b
bind C-f send-prefix
setw -g window-status-activity-style &quot;fg=colour27,bg=colour234,none&quot;</code></pre>
<p>Start tmux</p>
<pre><code>tmux a -d</code></pre>
<ul>
<li>Split pane horizontal - Prefix + %</li>
<li>Split pane vertical - Prefix + "</li>
</ul>
<p>Tmux resurrect</p>
<p>Key bindings</p>
<pre><code>    prefix + Ctrl-s - save
    prefix + Ctrl-r - restore</code></pre>
<p>About</p>
<p>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:</p>
<ul>
<li>all sessions, windows, panes and their order</li>
<li>current working directory for each pane</li>
<li>exact pane layouts within windows (even when zoomed)</li>
<li>active and alternative session</li>
<li>active and alternative window for each session</li>
<li>windows with focus</li>
<li>active pane for each window</li>
<li>"grouped sessions" (useful feature when using tmux with multiple
monitors)</li>
<li>programs running within a pane! More details in the restoring
programs doc.</li>
</ul>
<p>Optional:</p>
<ul>
<li>restoring vim and neovim sessions</li>
<li>restoring pane contents</li>
<li>restoring a previously saved environment</li>
</ul>
<p>Installing TPM (Tmux Plugin Manager) , Tmux Resurrect and Tmux
Continuum</p>
<ul>
<li>In ~/.tmux/plugins/</li>
</ul>
<pre><code>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</code></pre>
<ul>
<li>In a tmux window</li>
</ul>
<pre><code>prefix + I</code></pre>
<ul>
<li><p>Installs new plugins from GitHub or any other git
repository</p></li>
<li><p>Refreshes TMUX environment</p></li>
<li><p>Create a directory ~/.tmux/resurrect/</p>
<ul>
<li>This is where tmux-resurrect and tmux-continuum saves are
located</li>
<li>Do nothing and tmux-continuum saves automatically every 15 mins</li>
<li>At any time use <code>Prefix + Ctrl-s</code> to save a snapshot of
your session</li>
<li>To restore a session to the last save before a reboot
<ul>
<li>use <code>Prefix + Ctrl-s</code></li>
</ul></li>
</ul></li>
</ul>
<p>Here are the steps to restore to a previous point in time:</p>
<ul>
<li>make sure you start this with a "fresh" tmux instance</li>
<li>$ cd <code>~/.tmux/resurrect/</code></li>
<li>locate the save file you'd like to use for restore (file names have
a stamp)</li>
<li>symlink the last file to the desired save file: $
<code>ln -sf &lt;file_name&gt; last</code></li>
<li>do a restore with tmux-resurrect key:
<code>Prefix + Ctrl-r</code></li>
</ul>
<p>Tmux on laptop</p>
<p><a href="https://hackerpublicradio.org/eps/hpr3845/tmux_laptop.conf"
title="Tmux local configuration file">tmux_laptop.conf</a></p>
<p>Tmux on remote machine</p>
<p><a href="https://hackerpublicradio.org/eps/hpr3845/tmux_remote.conf"
title="Tmux remote configuration file">tmux_remote.conf</a></p>
<p>Screenshot</p>
<p><a
href="https://hackerpublicradio.org/eps/hpr3845/Screenshot.png"><img
src="https://hackerpublicradio.org/eps/hpr3845/Screenshot_tn.png"
title="Screenshot of Tmux window with 4 panes"
alt="Screenshot" /></a></p>
