-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf_2022
63 lines (51 loc) · 1.17 KB
/
tmux.conf_2022
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# zsh as default shell
set-option -g default-shell /bin/zsh
#set-option -g default-shell /bin/bash
# visual vi mode
setw -g mode-keys vi
# break
# break-pane
bind b break-pane
# copy z ctrl
unbind c-[
bind c-[ copy-mode
# paste even with ctrl
unbind c-]
bind-key c-] paste-buffer
# next/prev
# easier and faster switching between next/prev window
bind C-p previous-window
bind C-n next-window
# esccape lag
set -s escape-time 0
# move pane (aka. join-pane)
bind m command-prompt -p "send pane to:" "join-pane -t '%%'"
bind M choose-window "join-pane -t '%%'"
# swap window
bind c-m command-prompt -p "swap window with :" "swap-window -t '%%'"
# prefix & last window
unbind C-b
set-option -g prefix C-a
bind a send-prefix
unbind ^A
bind ^A last-window
# split
bind s split-window -v
bind v split-window -h
# longer history
set -g history-limit 10000
# slect pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# mouse
bind e setw synchronize-panes
set -g mouse
# The default is ‘[#S] ’
set -g status-left '[#h] '
set -g status-left-length 20