Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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....
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...
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...
working with panes 
• attach to a session: 
> tmux attach -t 
• split vertically: 
> C-b % 
• split window horizontally: 
...
this is too complex. 
can’t we automate it?
tmuxinator 
https://github.com/tmuxinator/tmuxinator
install and create a project 
• install the gem: 
> gem install tmuxinator 
follow README for shell configuration. 
• crea...
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 d...
“I am a friend of Sarah Connor. 
I was told she was here. 
Could I see her please?” 
– Terminator
• https://www.pragprog.com/book 
/bhtmux/tmux 
• http://waynesimmerson.ca/files/ 
Tmux-cheatsheet.pdf 
• http://www.cheato...
Tmux and Tmuxinator  ~ Rise of the Machines
Tmux and Tmuxinator  ~ Rise of the Machines
Tmux and Tmuxinator  ~ Rise of the Machines
Tmux and Tmuxinator  ~ Rise of the Machines
Upcoming SlideShare
Loading in …5
×

Tmux and Tmuxinator ~ Rise of the Machines

954 views

Published on

Understand how to automate tmux sessions with the ruby gem, tmuxinator

Published in: Technology
  • Be the first to comment

Tmux and Tmuxinator ~ Rise of the Machines

  1. 1. tmux and tmuxinator rise of the machines
  2. 2. 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.
  3. 3. create a session
  4. 4. exit the session
  5. 5. now create a named session
  6. 6. detaching and attaching to sessions • detach: > C-b • attach: > tmux attach -t catproof
  7. 7. examining sessions • create another session and then detach: > tmux new -s humanproof >> C-b d • show all tmux session: > tmux ls
  8. 8. examining sessions
  9. 9. killing sessions • kill a session: > tmux kill-session -t humanproof
  10. 10. 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..
  11. 11. working with panes • attach to a session: > tmux attach -t • split vertically: > C-b % • split window horizontally: > C-b “
  12. 12. this is too complex. can’t we automate it?
  13. 13. tmuxinator https://github.com/tmuxinator/tmuxinator
  14. 14. install and create a project • install the gem: > gem install tmuxinator follow README for shell configuration. • create a new project: > tmuxinator open catproof project conf ~/.tmuxinator/catproof.yml
  15. 15. yml session description
  16. 16. launch a tmuxinator session • launch: > tmuxinator catproof
  17. 17. pane management • move between panes: >> C-b 1 >> C-b 2 • close a pane by typing `exit` in that pane
  18. 18. why is this important? • create project specific terminal multiplexing experiences • save states or share sessions on development servers • pair with others
  19. 19. “I am a friend of Sarah Connor. I was told she was here. Could I see her please?” – Terminator
  20. 20. • https://www.pragprog.com/book /bhtmux/tmux • http://waynesimmerson.ca/files/ Tmux-cheatsheet.pdf • http://www.cheatography.com/b echtold/cheat-sheets/tmux-the-terminal- multiplexer/ • http://www.circuidipity.com/tmu x.html

×