Skip to content

Instantly share code, notes, and snippets.

@iantruslove
Created June 1, 2013 20:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save iantruslove/5691662 to your computer and use it in GitHub Desktop.
Save iantruslove/5691662 to your computer and use it in GitHub Desktop.
Tmux cheat sheet

Multi-window, multi-terminal split

Two terminal windows open, one with a bunch of long running watch tasks, the other with an editor. Each of the terminals is a view into one of two windows in a tmux session. Useful for having a vertically split screen with editor on right, and switching between a browser and other command windows on the left.

In first terminal:

  • tmux new-session -s first
  • tmux rename-window editor
  • emacs or whatever

In second terminal:

  • tmux new-session -t first -s second
  • tmux new-window -n commands
  • lein ring server etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment