Build tmux from scratch

Configuration

MacOS

set-option -g default-command "reattach-to-user-namespace -l zsh"

~./tmux.conf

Config example

Simple tmux statusline generator

Generate a fast shell prompt

Cheatsheet

https://gist.github.com/patsancu/60bfd4576af7fecd6f8b4329347a108e

Sessions

tmux new -s session_name

^B + d detach from session without killing anything tmux attach -t session_name attach to sessions

Plugins

https://github.com/tmux-plugins/tpm

tmux commands

move window between sessions

source

move-window -s chat:irc -t other_session