On tmux

Why I use tmux

I'm loving Tmux. I have 9 Tmux windows going with 4 different projects. I can swap between them easily and all in one terminal window. This is hugely beneficial when connecting via ssh, but I don't use that all that much.

  • Project
  • Backend window
  • Frontend window
  • Third window for git, running shells, file management, etc.

Changes from defaults

  • Change prefix key fron ctrl-b to ctrl-a (There's a case to be made for ctrl-space)
  • Change create panes to | and - for vertical and horizontal splits
  • Add Vim-like keybinds to switch between panes

Cheatsheet

Creating a new session

<prefix> :new

Renaming a session

<prefix> $ NEW_NAME

Create a new window

<prefix> c

Renaming a window

<prefix> :rename-window

Resize pane

<prefix> :resize-pane -[UDLR] <size>