-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
94 lines (69 loc) · 2.52 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
# * Settings
# Automatically set window title
setw -g automatic-rename on
# Turn on mouse support
setw -g mouse on
# Scroll History
set -g history-limit 50000
# 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
# Beeping is NOT OK
# set -g bell-action all
set -g visual-bell off
# * Bindings
# reload config file
bind r source-file ~/.tmux.conf
# switch windows using alt-arrow and alt-# without prefix
bind -n M-Left select-window -p
bind -n M-Right select-window -n
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
# arrow keys and such
set -g default-terminal "xterm-256color"
# send control key sequences
set-option -gw xterm-keys on
# start window numbering at 1 for easier switching
set -g base-index 1
# split window commands like screen
bind | split-window -h
bind - split-window -v
# kill the whole session with prejudice
bind k kill-session
# * Visual
# Highlight the active pane
# set-option -g pane-border-bg colour238
# set-option -g pane-border-fg cyan
# set-option -g pane-active-border-bg colour237
# set-option -g pane-active-border-fg cyan
# Visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity off
# Default colors
set-option -g status-bg white
set-option -g status-fg cyan
# set-option -g status-attr default
# Left side of status bar
# set -g status-left-length 20
set -g status-left ''
# Set the format in which the window is displayed in the status line window list
# The default is `#I:#W#F'.
set-window-option -g window-status-format '#[bg=black]#[fg=white] #I:#W#F '
# Current or active window in status bar
set-window-option -g window-status-current-format '#[bg=cyan]#[fg=black] #I:#W#F '
# Set status line style for windows with an activity alert
set-window-option -g window-status-activity-style 'bg=colour99,fg=black'
# Set status line style for windows with a bell alert
set-window-option -g window-status-bell-style 'bg=red,fg=black'
# Right side of status bar
set -g status-right-length 50
set -g status-right '#[fg=colour7]#[bg=colour239] #S #[bg=colour240] #P #[fg=colour255]#[bg=colour242] #(whoami) #[fg=colour0]#[bg=colour246] #h '