tmux and tmuxinator ~ rise of the machines
DESCRIPTION
Understand how to automate tmux sessions with the ruby gem, tmuxinatorTRANSCRIPT
tmux and
tmuxinator rise of the machines
I’ll be back.
• tmux is a terminal multiplexer.
• allows you to save the state of terminal sessions and reattach later.
• sessions are persistent and will survive accidental disconnection.
create a session
exit the session
now create a named session
detaching and attaching to sessions
• detach:> C-b
• attach:> tmux attach -t catproof
examining sessions
• create another session and then detach:> tmux new -s humanproof>> C-b d
• show all tmux session:> tmux ls
examining sessions
killing sessions
• kill a session:> tmux kill-session -t humanproof
wait what?
• attach to or kill a session:> tmux attach -t catproof> tmux kill-session -t catproof
• create a session:> tmux new -s cat proof
• yes it’s different flags, -i before e except after c-just remember it..
working with panes
• attach to a session:> tmux attach -t
• split vertically:> C-b %
• split window horizontally:> C-b “
this is too complex. can’t we automate it?
tmuxinatorhttps://github.com/tmuxinator/tmuxinator
install and create a project
• install the gem:> gem install tmuxinatorfollow README for shell configuration.
• create a new project:> tmuxinator open catproof project conf ~/.tmuxinator/catproof.yml
yml session description
launch a tmuxinator session
• launch:> tmuxinator catproof
pane management
• move between panes:>> C-b 1>> C-b 2
• close a pane by typing `exit` in that pane
why is this important?
• create project specific terminal multiplexing experiences
• save states or share sessions on development servers
• pair with others
– Terminator
“I am a friend of Sarah Connor. I was told she was here. Could I see her please?”
• https://www.pragprog.com/book/bhtmux/tmux
• http://waynesimmerson.ca/files/Tmux-cheatsheet.pdf
• http://www.cheatography.com/bechtold/cheat-sheets/tmux-the-terminal-multiplexer/
• http://www.circuidipity.com/tmux.html