Better tmux

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2025-02-10 06:30:22 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2025-02-10 06:30:22 +0100
Commit aea39b153e72b4df07506b7de42b6a4232d12c61 (patch)
-rw-r--r-- .tmux.conf 19
1 files changed, 9 insertions, 10 deletions
diff --git a/.tmux.conf b/.tmux.conf
  
1
unbind C-b
  
2
set -g prefix `
  
3
bind ` send-prefix
  
4
  
1
set -g default-terminal "screen-256color"
5
set -g default-terminal "screen-256color"
2
set-window-option -g automatic-rename on
6
set-window-option -g automatic-rename on
3
set-window-option -g mode-keys vi
7
set-window-option -g mode-keys vi
...
5
set-option -sg escape-time 10
9
set-option -sg escape-time 10
6
set-option -g mouse off
10
set-option -g mouse off
7
  
11
  
8
if-shell "uname | grep -q Linux" {
  
9
	set -g prefix M-x
  
10
	bind M-x send-prefix
  
11
}
  
12
  
  
13
if-shell "uname | grep -q Darwin" {
  
14
	set -g prefix M-z
  
15
	bind M-z send-prefix
  
16
}
  
17
  
  
18
set -g base-index 1
12
set -g base-index 1
19
set-window-option -g pane-base-index 1
13
set-window-option -g pane-base-index 1
20
set -g renumber-windows on
14
set -g renumber-windows on
...
28
bind-key Left  select-pane -L
22
bind-key Left  select-pane -L
29
bind-key Right select-pane -R
23
bind-key Right select-pane -R
30
  
24
  
  
25
bind-key -r S-Up    resize-pane -U 5
  
26
bind-key -r S-Down  resize-pane -D 5
  
27
bind-key -r S-Left  resize-pane -L 5
  
28
bind-key -r S-Right resize-pane -R 5
  
29