Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active April 11, 2024 19:11
Show Gist options
  • Save wilmoore/37e27e9e0af64a99c1d59c008f9297fd to your computer and use it in GitHub Desktop.
Save wilmoore/37e27e9e0af64a99c1d59c008f9297fd to your computer and use it in GitHub Desktop.
Income Sources :: Books :: Everyday Tmux

Income Sources :: Books :: Everyday Tmux

⪼ Made with 💜 by realpolyglot.com

related

About

You've studied a few cheat sheets and reference guides; however, TMUX still doesn't seem to click for you? This guide is the guide I wish I had when I first encountered TMUX. A guide, small enough to digest in an afternoon with just enough depth for you to be a TMUX master even after being away from it for an extended period of time.

An exhaustive reference guide won't help. You don't need to know all of the commands and options. This guide is a minimal set of everyday commands that help keep you productive.

Tmux Keybindings

CTRL+b d
[detached (from session Thoughtworks Pair Programming Interview)]
preview pane numbers and optionally switch panes by pressing number while preview is on screen
CTRL+b q {PaneNumber}
expand a pane into a new window
CTRL+b !
rename window
CTRL+b ,
split pane horizontally

think of the percentage sign's circles as panes and there is a line going down the center

CTRL+b %
switch windows by number
CTRL+b {WindowNumber}
preview & switch sessions and/or windows
CTRL+b w
preview & switch sessions
CTRL+b s
rename session
CTRL+b $

Tmux Shell Script

attach.fish
» type attach
attach is a function with definition
# Defined in /Users/wmoore/.config/fish/functions/attach.fish @ line 1
function attach
  tmux attach-session -t (tmux ls | cut -d':' -f1 | fzf-tmux)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment