-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
101 lines (79 loc) · 2.46 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
96
97
98
99
100
101
# set Ctrl-<space> as the default prefix key combination
# and unbind C-b to free it
unbind C-b
set -g prefix C-a
# set -g default-command "exec /usr/local/bin/fish"
# shorten command delay
set -sg escape-time 1
# Status keys
set -g status-keys vi
# map Vi movement keys as pane movement keys
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Kill panes faster
bind x kill-pane
# Mouse support
set-option -g mouse on
set -g @scroll-speed-num-lines-per-scroll "1"
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# use PREFIX = to split window horizontally and PREFIX - to split vertically
bind '\' split-window -h -c "#{pane_current_path}"
bind '-' split-window -v -c "#{pane_current_path}"
# Make the current window the first window
bind T swap-window -t 1
# and use C-h and C-l to cycle thru panes
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes using PREFIX H, J, K, L
# bind H resize-pane -L 5
# bind J resize-pane -D 5
# bind K resize-pane -U 5
# bind L resize-pane -R 5
# bind -n Up resize-pane -U 5
# bind -n Down resize-pane -D 5
# bind -n Left resize-pane -L 6
# bind -n Right resize-pane -R 5
# toggle statusbar
bind-key b set-option status
#
## Theme
#
# Set status bar at the top
set-option -g status-position top
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# panes
set -g pane-border-style fg=colour0
set -g pane-active-border-style fg=colour238
# status line
set -g status-justify left
set -g status-bg default
set -g status-fg default
set -g status-interval 2
# messaging
set -g message-style fg=black,bg=yellow
# set -g message-bg yellow
set -g message-command-style fg=blue,bg=black
# set -g message-command-bg black
set -g automatic-rename on
# window mode
#setw -g mode-style bg=colour6
setw -g mode-style bg=colour6,fg=colour0
# colors
setw -g window-status-format "#[fg=colour3] •#[fg=colour8] #W "
setw -g window-status-current-format "#[fg=colour2] •#[fg=colour7] #W "
setw -g window-status-current-style dim
set -g status-position bottom
set -g status-justify centre
set -g status-left " #[fg=colour3]• #[fg=colour2]• #[fg=colour4]•"
set -g status-right " #[fg=colour4] •#[fg=colour8] #P "