-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
46 lines (37 loc) · 1.49 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
# To reload the configuration file after modification
# $ tmux source-file ~/.tmux.conf
# set the control character to alt+space
unbind C-b
set-option -g prefix M-space
# window navigation
bind-key -n M-j prev
bind-key -n M-k next
bind-key -n M-o new-window -c "#{pane_current_path}"
# status bar
set -g status-style fg=white,bg=black
set -g default-terminal "screen-256color"
# nvim's :checkhealth recommendations
set-option -sg escape-time 10
set-option -g focus-events on
set-option -sa terminal-overrides ',screen-256color:RGB'
# title
# @see https://gist.github.com/wyattdanger/1142359
setw -g automatic-rename off
set-option -g set-titles on
set-option -g set-titles-string '#I:#W @#T'
# highlight active window
# @see http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/#modifying-tab-color
set-window-option -g window-status-current-style bg=red
# no zero-based index
set -g base-index 1
# almost unlimited history
# @see http://www.tjvanslyke.com/2012/07/01/tmux-for-vim-users.html
set-option -g history-limit 100000
# prevent split over when scrollback history.
# @see https://medium.freecodecamp.org/tmux-in-practice-scrollback-buffer-47d5ffa71c93
# trigger copy mode and scroll up/down by 1 line, half screen, whole screen.
bind -n PageUp copy-mode
bind -T copy-mode-vi Up send-keys -X scroll-up
bind -T copy-mode-vi Down send-keys -X scroll-down
bind -T copy-mode-vi PageDown send-keys -X page-down
bind -T copy-mode-vi PageUp send-keys -X page-up