-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
95 lines (68 loc) · 2.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
set -g default-terminal 'screen-256color'
set -ga terminal-overrides ',*256col*:Tc'
set-option -g default-shell /usr/bin/fish
unbind C-j
set-option -g prefix C-j
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
set-option -g mouse on
unbind v
unbind s
unbind % # Vert split
unbind '"' # Horizontal split
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
unbind h
unbind j
unbind k
unbind l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Vi mode
setw -g mode-keys vi
bind m copy-mode
# Window title begins by 1 and not 0
set -g base-index 1
setw -g pane-base-index 1
# Switching between sessions
unbind [
unbind ]
bind [ switch-client -p
bind ] switch-client -n
unbind d
bind d kill-session -t "#{session_name}"
set-window-option -g mode-keys vi
# # Status
# set-option -g status-style bg=#2a52be,fg=white
# set-option -g status-justify centre
# # Status left
# set-option -g status-left-length 20
# set-option -g status-left '#[bold]#(echo "Session: ")#{session_name}'
# # Status right
# set-option -g status-right '#[bold]#(date)'
# set-option -g status-interval 1
# set-option -g window-status-format '#[bold]#{window_index}#(echo ":")#{window_name}#{window_flags}'
# set-option -g window-status-current-format '#[bold]#{window_index}#(echo ":")#{window_name}#{window_flags}'
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style fg=yellow,bg=black #yellow and base02
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default
set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default
set-window-option -g window-status-current-style bright
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style fg=brightred,bg=black #orange and base01
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red