Skip to content

Instantly share code, notes, and snippets.

@olistik
Created May 4, 2012 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olistik/2593578 to your computer and use it in GitHub Desktop.
Save olistik/2593578 to your computer and use it in GitHub Desktop.
tmux for fun and profit (mental memos for the talk)

TL;DR

Tmux allows you to handle a multi tab/pan environment.

In the console.

Let's take a spin

Installation

  • Homebrew -> brew install tmux

  • Ubuntu -> sudo apt-get install tmux

Documentation

  • man tmux

  • The Internet: blog posts, screencasts.

The first encounter

tmux quit

  • create tabs

CTRL + c

  • safety map: "?"

CTRL + ?

  • manual commands: ":"

CTRL + :

Get the party started

  • split: CTRL + b + % (vertical split) CTRL + b + " (horizontal split)

  • move: CTRL + b + arrows

Do it like Frank

vim ~/.tmuxconf

set -g prefix Ctrl-a

Rails gratification

  • gem install tmuxinator

echo "export EDITOR='vim -w'" >> ~/.bashrc echo "[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source" >> ~/.bashrc

Demo

Alternatives

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment