// tmux is an alternative to [[screen]] // with the help of tmux you can * start multiple shell sessions in one window * keep interactive shell sessions running in the backround * work together in a shell * execute several commands in parallel ^ start ^^ | start a tmux-session | ''tmux'' | | move a tmux session to the background | ''Ctrl+b'' ''d'' | | move a tmux session into forground | ''tmux attach'' | | end a shell | ''Ctrl+d'' | ^ sessions ^^ | start a named session 'session1' | ''tmux new -s session1'' | | list sessions | ''tmux list-sessions'' | | connect to running session ''session1'' | ''tmux attach -t session1'' | ^ windows ^^ | new tmux "window" | ''Ctrl+b'' ''c'' | | change to next window | ''Ctrl+b'' ''n'' | | change to previous window | ''Ctrl+b'' ''p'' | | change name of current window | ''Ctrl+b'' '','' | | list windows | ''Ctrl+b'' ''w'' | | jump to window 4 | ''Ctrl+b'' ''4'' ([0..9]) | ^ panes ^^ | split horizontaly | ''Ctrl+b'' ''%%"%%'' | | split verticaly | ''Ctrl+b'' ''%'' | | change to other pane | ''Ctrl+b'' '''' | | remove current pane | ''Ctrl+b'' ''x'' | | change the size of the current pane | ''Ctrl+b'' ''Ctrl+'' | | change current pane to full-screen and back | ''Ctrl+b'' ''z'' | | change all panes to verticaly same size | ''Ctrl+b'' ''Alt+2'' bzw.''Ctrl+b'' ''ESC'' ''2'' | | change all panes to horizontally same size | ''Ctrl+b'' ''Alt+1'' bzw.''Ctrl+b'' ''ESC'' ''1'' | ^ scroll ^^ | scroll up | ''Ctrl+b'' ''Bild auf'' | | turn scrolling on | ''Ctrl+b ['' | | turn scrolling off | ''Ctrl+c'' | ====== Reloading tmux config ====== If you have made changes to your tmux configuration file in the ~/.tmux.conf file, it shouldn’t be necessary to start the server up again from scratch with kill-server. Instead, you can prompt the current tmux session to reload the configuration with the source-file command. This can be done either from within tmux, by pressing Ctrl+B and then : to bring up a command prompt, and typing: :source-file ~/.tmux.conf Or simply from a shell: $ tmux source-file ~/.tmux.conf This should apply your changes to the running tmux server without affecting the sessions or windows within them. ====== Distributed shell ====== have input in all panes: * ''+b'' :set synchronize-panes switch it off again: :set synchronize-panes off ====== ''Ctrl+a'' instead of ''Ctrl+b'' ====== # Ctrl+a statt Ctrl+b set -g prefix C-a unbind-key C-b bind-key C-a send-prefix ====== documentation ====== * https://gist.github.com/MohamedAlaa/2961058 * http://man.openbsd.org/OpenBSD-current/man1/tmux.1 * https://github.com/tmuxinator/tmuxinator