Permalink
Browse files

Created tmux (markdown)

  • Loading branch information...
hparra committed Aug 10, 2016
1 parent 4f6159c commit 771571a66dcedc85b74c4df549b8eba38eeedd5a
Showing with 46 additions and 0 deletions.
  1. +46 −0 tmux.md
View
46 tmux.md
@@ -0,0 +1,46 @@
+tmux -- terminal multiplexer
+============================
+
+tmux:
+- is a terminal multiplexer
+- eliminates the need for multiple terminal windows
+- lets you switch easily between several programs in one terminal
+- lets you detach programs and keep them running in the background
+- lets you reattach programs to a different terminal
+- works well with emacs and vi
+
+There are three ways to interact with _tmux_:
+- from the shell using `tmux`
+- through the tmux console
+- through key bindings
+
+## Shell Interactions
+
+- start a new session: `tmux`
+- start a new named session, e.g. `tmux new -s mynewsession`
+- list sessions: `tmux ls`
+- attach to a session by number, e.g. `tmux at 0`
+- attach to a session by name, e.g. `tmux at -t somename`
+- kill a session by name, e.g. `tmux kill-session -t somename`
+
+There are three layers of organization in _tmux_:
+- sessions
+- windows (tabs)
+- panes (splits)
+
+## Window Interactions
+
+Keybindings:
+- c new window
+- , name window
+- s list windows
+- f find window
+- & kill window
+
+## Tips
+
+Mac OS X has some problems with copying and pasting. See [Notes and workarounds for accessing the Mac OS X pasteboard in tmux sessions](https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard).
+
+## References
+
+[tmux man page](http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/tmux.1?query=tmux&sec=1)

0 comments on commit 771571a

Please sign in to comment.