Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Save and Restore Tmux Sessions across Reboots with Tmux Resurrect

save-and-restore-tmux-sessions-across-reboots-with-tmux-resurrect.jpg

This is a plugin for tmux that persists your sessions, windows, panes and more. It's controlled by hotkeys to save and restore everything.

Quick Jump:

Tmux is one of my favorite tools. It lets you create sessions that contain multiple windows and panes and it persists everything even if you close your terminal. However, out of the box if you reboot you will lose all of your sessions.

But with the tmux-resurrect plugin you can save and restore your sessions whenever you want by hitting a hotkey to save them and another hotkey to restore them.

# Installing and Using tmux-resurrect

Timestamps

  • 0:09 – Tmux persists sessions but not across reboots
  • 0:39 – tmux-resurrect is a plugin that lets you save and restore sessions and more
  • 1:39 – Installing tpm (tmux plugin manager)
  • 4:09 – Installing tmux-resurrect using tpm
  • 5:15 – Tmux’s default behavior without resurrect
  • 7:30 – Saving and restoring everything with tmux-resurrect
  • 8:40 – This is really useful for dev boxes where you might be rebooting a bit

Reference Links

Are you using this plugin? Let me know below.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per year (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.



Comments