m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/tmux.md
blob: 1d08bc362c8a49e679b0e25a6d496d8979516735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Tmux

## Sessions

    (/) switch between sessions

## Window management

    .N  move window to index N
    w   choose window interactively

## Pane management

    q   display pane indices
    :move-pane -t <session id>:<window id>

## Run command in new session

    tmux new-session \; send-keys 'command
'
    # 
 can be entered with Ctrl-V + Enter

## Run command in multiple panes at once

* `:setw synchronize-panes on`
    turn off with `:setw synchronize-panes off`

## Packages

First clone TPM:

    $ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Then in config:

    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    run '~/.tmux/plugins/tpm/tpm'

Then `<prefix>+I` to download listed plugins.