-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
77 lines (59 loc) · 2.4 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
set -g default-terminal "screen-256color"
# change prefix command to C-z
set -g prefix C-z
unbind C-b
bind C-z last-window
bind z send-prefix
# Turn on mouse support
setw -g mouse on
setw -g monitor-activity on
set -g visual-activity on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
set -ga terminal-overrides ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
# Prevent creation of a new "login shell" by default
set -g default-command "${SHELL}"
# Scroll History
set -g history-limit 30000
set -g mode-keys vi
# y and p as in vim
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X select-line
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key -T copy-mode-vi 'Space' send -X halfpage-down
bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
bind-key -T copy-mode-vi 'Up' send-keys -X scroll-up
bind-key -T copy-mode-vi 'Down' send-keys -X scroll-down
bind-key -T copy-mode-vi 'PageDown' send-keys -X page-down
bind-key -T copy-mode-vi 'PageUp' send-keys -X page-up
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
# setup | and - for window splitting
unbind %
bind | split-window -h
bind - split-window -v
# title
set -g set-titles on
set -g set-titles-string '#T'
#set -g status-justify centre
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# default statusbar colors
set-option -g status-style fg=colour7,bg=colour0,default
# default window title colors
set-window-option -g window-status-style fg=colour6,bg=default
#set-window-option -g window-status-attr dim
set-window-option -g automatic-rename on
# active window title colors
setw -g window-status-current-format "|#I:#W|"
set-window-option -g window-status-current-style fg=colour4,bg=default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01