Lesson learnt: use iTerm2 and tmux

Tmux integration


  1. I open an iTerm2 window and run this command,
/home/❯❯❯ tmux -CC
** tmux mode started **
Command Menu
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.2. Re-attach the window after losing it.
/home/❯❯❯ tmux -CC attach

Use Cases

  • I accidentally press a wrong key and close the window without saving my work.
  • Restore the environment you had at work when you get home.
  • No more anxiety about letting System Update reboot.
  • I don’t need to know how tmux shortcuts work, and don’t need to memorize a new system.



Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store