-
Notifications
You must be signed in to change notification settings - Fork 3
/
.tmux.conf
70 lines (58 loc) · 1.79 KB
/
.tmux.conf
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
64
65
66
67
68
69
70
# command prefix (like screen)
set -g prefix C-a
bind C-a send-prefix
# basic settings
set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi
set-window-option -g mouse off # disable mouse
set -g default-terminal "kitty"
# enable true color support for better color highlighting
set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides ",tmux-256color*:Tc"
# copy mode to escape key
unbind [
bind Escape copy-mode
# splitting and cycling
unbind %
bind + split-window -h # horizontal split
unbind '"'
bind _ split-window -v # vertical split
bind C-j previous-window
bind C-k next-window
# Resizing panes
bind -n S-Left resize-pane -L 2
bind -n S-Right resize-pane -R 2
bind -n S-Down resize-pane -D 2
bind -n S-Up resize-pane -U 2
bind -n C-Left resize-pane -L 10
bind -n C-Right resize-pane -R 10
bind -n C-Down resize-pane -D 5
bind -n C-Up resize-pane -U 5
# Vi-keybindings to move among panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# window title
set-option -g set-titles on
#set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
set-option -g set-titles-string '#W'
set-window-option -g window-status-format '[#I #W]'
set-window-option -g automatic-rename on # auto name
# No visual activity
set -g visual-activity off
set -g visual-bell off
#next tab
bind-key -n C-right next
#previous tab
bind-key -n C-left prev
# status bar
set-option -g status-justify right
set-option -g status-bg colour254
set-option -g status-fg colour160
set-option -g status-interval 5
set-option -g status-left-length 30
set-option -g status-left '#[fg=colour160]:: #[default]#H'
set-option -g status-right '#[fg=colour160]: #[fg=colour233,bold]#S #[default]#[fg=colour160]::'
# clock
set-window-option -g clock-mode-style 24