Skip to main content

Tmux

Introduction

General

Sessions

  • Attach to last session: $ tmux a
  • Attach to session β€œname”: $ tmux a -t name
  • Create session: $ tmux or Prefix + :new
  • Create session ”name”: $ tmux new -s name or Prefix + :new -s name
  • List sessions: $ tmux ls or Prefix + s
  • Move to previous session: Prefix + (
  • Move to next session: Prefix + )
  • Rename active session: Prefix + $
  • Detach from active session: Prefix + d

Windows

  • Create window: Prefix + c
  • List session windows: Prefix + w
  • Rename window: Prefix + ,
    • I changed this to Prefix + r

Panes

  • Create vertical pane: Prefix + %
  • Create horizontal pane: Prefix + "
  • Move to next pane: Prefix + o
  • Alternate panes: Prefix + ;
  • Close pane: Prefix + x

Configuring

# remap prefix from C-b to C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix

Examples

  • .tmux.conf β€’ James Wickett πŸ‘©β€πŸ’»

Pop-ups

Plugins

Inbox