| File tmux.conf changed (mode: 100644) (index a397b3d..b093c58) |
|
1 |
|
# Meaning of aliases: |
|
2 |
|
# bind -> bind-key |
|
3 |
|
# unbind -> unbind-key |
|
4 |
|
# set -> set-option |
|
5 |
|
# set -w -> set-window-option |
|
6 |
|
|
| 1 |
7 |
# use vi-like shortcuts in various modes |
# use vi-like shortcuts in various modes |
| 2 |
|
set-window-option -g mode-keys vi |
|
|
8 |
|
set -gw mode-keys vi |
| 3 |
9 |
|
|
| 4 |
10 |
# use ctrl-s as prefix key |
# use ctrl-s as prefix key |
| 5 |
|
set-option -g prefix C-s |
|
| 6 |
|
unbind-key C-b |
|
| 7 |
|
bind-key C-s send-prefix |
|
|
11 |
|
set -g prefix C-s |
|
12 |
|
unbind C-b |
|
13 |
|
bind C-s send-prefix |
| 8 |
14 |
|
|
| 9 |
15 |
# don't wait for the next character after escape key |
# don't wait for the next character after escape key |
| 10 |
|
set-option -g escape-time 0 |
|
|
16 |
|
set -g escape-time 0 |
| 11 |
17 |
|
|
| 12 |
18 |
# setup default type of terminal |
# setup default type of terminal |
| 13 |
|
set-option -g default-terminal "tmux-256color" |
|
|
19 |
|
set -g default-terminal "tmux-256color" |
| 14 |
20 |
|
|
| 15 |
21 |
# show pane numbers for two seconds |
# show pane numbers for two seconds |
| 16 |
|
set-option -g display-panes-time 2000 |
|
|
22 |
|
set -g display-panes-time 2000 |
| 17 |
23 |
|
|
| 18 |
24 |
# store more of buffer history |
# store more of buffer history |
| 19 |
|
set-option -g history-limit 100000 |
|
|
25 |
|
set -g history-limit 100000 |
| 20 |
26 |
|
|
| 21 |
27 |
# use vi-line shortcuts to yank text in copy-mode |
# use vi-line shortcuts to yank text in copy-mode |
| 22 |
|
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection |
|
| 23 |
|
bind-key -T copy-mode-vi 'V' send-keys -X select-line |
|
| 24 |
|
bind-key -T copy-mode-vi '^v' send-keys -X rectangle-toggle |
|
| 25 |
|
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection |
|
|
28 |
|
bind -T copy-mode-vi 'v' send-keys -X begin-selection |
|
29 |
|
bind -T copy-mode-vi 'V' send-keys -X select-line |
|
30 |
|
bind -T copy-mode-vi '^v' send-keys -X rectangle-toggle |
|
31 |
|
bind -T copy-mode-vi 'y' send-keys -X copy-selection |
| 26 |
32 |
|
|
| 27 |
33 |
# reload config (prefix + r) |
# reload config (prefix + r) |
| 28 |
|
bind-key r source ~/.tmux.conf \; \ |
|
| 29 |
|
display "Configuration reloaded!" |
|
|
34 |
|
bind r source ~/.tmux.conf \; \ |
|
35 |
|
display "Configuration reloaded!" |
| 30 |
36 |
|
|
| 31 |
37 |
# rebind vertical and horizontal splitting shortcuts |
# rebind vertical and horizontal splitting shortcuts |
| 32 |
|
unbind-key % |
|
| 33 |
|
bind-key | split-window -c "#{pane_current_path}" -h |
|
| 34 |
|
unbind-key "\"" |
|
| 35 |
|
bind-key - split-window -c "#{pane_current_path}" -v |
|
| 36 |
|
bind-key c new-window -c "#{pane_current_path}" |
|
|
38 |
|
unbind % |
|
39 |
|
bind | split-window -c "#{pane_current_path}" -h |
|
40 |
|
unbind "\"" |
|
41 |
|
bind - split-window -c "#{pane_current_path}" -v |
|
42 |
|
bind c new-window -c "#{pane_current_path}" |
| 37 |
43 |
|
|
| 38 |
44 |
# duplicate prefix+n/p keys with prefix+<c-n>/<c-p> |
# duplicate prefix+n/p keys with prefix+<c-n>/<c-p> |
| 39 |
|
bind-key ^n next-window |
|
| 40 |
|
bind-key ^p previous-window |
|
|
45 |
|
bind ^n next-window |
|
46 |
|
bind ^p previous-window |
| 41 |
47 |
|
|
| 42 |
48 |
# move between panes using prefix + h/j/k/l |
# move between panes using prefix + h/j/k/l |
| 43 |
|
bind-key h select-pane -L |
|
| 44 |
|
bind-key j select-pane -D |
|
| 45 |
|
bind-key k select-pane -U |
|
| 46 |
|
bind-key l select-pane -R |
|
|
49 |
|
bind h select-pane -L |
|
50 |
|
bind j select-pane -D |
|
51 |
|
bind k select-pane -U |
|
52 |
|
bind l select-pane -R |
| 47 |
53 |
|
|
| 48 |
54 |
# resize pane using prefix + H/J/K/L |
# resize pane using prefix + H/J/K/L |
| 49 |
|
bind-key -r H resize-pane -L 5 |
|
| 50 |
|
bind-key -r J resize-pane -D 5 |
|
| 51 |
|
bind-key -r K resize-pane -U 5 |
|
| 52 |
|
bind-key -r L resize-pane -R 5 |
|
|
55 |
|
bind -r H resize-pane -L 5 |
|
56 |
|
bind -r J resize-pane -D 5 |
|
57 |
|
bind -r K resize-pane -U 5 |
|
58 |
|
bind -r L resize-pane -R 5 |
| 53 |
59 |
|
|
| 54 |
60 |
# toggle between two last visited windows |
# toggle between two last visited windows |
| 55 |
|
bind-key ' ' last-window |
|
|
61 |
|
bind ' ' last-window |
| 56 |
62 |
|
|
| 57 |
63 |
# configure borders colour scheme |
# configure borders colour scheme |
| 58 |
|
set-option -g pane-border-style "bg=black fg=colour235" |
|
| 59 |
|
set-option -g pane-active-border-style "bg=colour235 fg=white" |
|
|
64 |
|
set -g pane-border-style "bg=black fg=colour235" |
|
65 |
|
set -g pane-active-border-style "bg=colour235 fg=white" |
| 60 |
66 |
|
|
| 61 |
67 |
# configure status bar colour scheme |
# configure status bar colour scheme |
| 62 |
|
set-window-option -g status-style "bg=colour235 fg=white bold" |
|
| 63 |
|
set-window-option -g window-status-style "bg=colour235 fg=white" |
|
| 64 |
|
set-window-option -g window-status-current-style "bg=colour235 fg=colour248 bold reverse" |
|
|
68 |
|
set -gw status-style "bg=colour235 fg=white bold" |
|
69 |
|
set -gw window-status-style "bg=colour235 fg=white" |
|
70 |
|
set -gw window-status-current-style "bg=colour235 fg=colour248 bold reverse" |
| 65 |
71 |
|
|
| 66 |
72 |
# configure status bar look |
# configure status bar look |
| 67 |
|
set-option -g status-justify centre |
|
| 68 |
|
set-option -g status-right '' |
|
| 69 |
|
set-option -g status-right-length 50 |
|
|
73 |
|
set -g status-justify centre |
|
74 |
|
set -g status-right '' |
|
75 |
|
set -g status-right-length 50 |
| 70 |
76 |
|
|
| 71 |
77 |
# display status bar at the top |
# display status bar at the top |
| 72 |
|
set-option -g status-position top |
|
|
78 |
|
set -g status-position top |
| 73 |
79 |
|
|
| 74 |
80 |
# copy copy-mode selection into primary selection of X |
# copy copy-mode selection into primary selection of X |
| 75 |
|
bind-key -T copy-mode-vi c send-keys -X copy-pipe-and-cancel "xsel --primary --input" |
|
|
81 |
|
bind -T copy-mode-vi c send-keys -X copy-pipe-and-cancel "xsel --primary --input" |
| 76 |
82 |
# copy copy-mode selection into clipboard of X |
# copy copy-mode selection into clipboard of X |
| 77 |
|
bind-key -T copy-mode-vi C send-keys -X copy-pipe-and-cancel "xsel --clipboard --input" |
|
|
83 |
|
bind -T copy-mode-vi C send-keys -X copy-pipe-and-cancel "xsel --clipboard --input" |