-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
112 lines (84 loc) · 2.73 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
102
103
104
105
106
107
108
109
110
111
112
##### CLEANUP
# Unbind the default tmux command prefix, CTRL+b.
unbind C-b
#####
##### PREFERENCES
# Use CTRL+a as our tmux command prefix.
set -g prefix C-a
# Lower the default tmux delay, this makes tmux more responsive.
set -s escape-time 1
# Enable mouse movements.
#setw -g mode-mouse off
#
## Enable pane selection via the mouse.
#set -g mouse-select-pane on
#
## Enable the mouse to resize panes.
#set -g mouse-resize-pane on
#
## Enable the mouse to change the current window.
#set -g mouse-select-window on
# Make tmux use 256 colors.
set -g default-terminal "screen-256color"
# Make tmux act like xterm to prevent Vim issues:
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Only resize the screen size if the smaller screen user has their window
# active. This way my screen won't be resized to an incredibly small window
# unnecessarily.
setw -g aggressive-resize on
# Store a lot of history.
set -g history-limit 100000
#####
##### MAPPINGS
# PREFIX CTRL+a: send CTRL+a to the local application.
bind C-a send-prefix
# PREFIX r: Instantly reload tmux's configuration file.
bind r source-file ~/.tmux.conf \; display "tmux has been reloaded!"
# PREFIX \: Create a new vertial pane.
bind \ split-window -h
# PREFIX -: Create a new horizontal pane.
bind - split-window -v
# Use Vim movement key mappings for switching around between panes.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Vim movement key mappings (uppercase) for resizing panes.
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
#####
##### APPEARANCE
# Use Solarized colorscheme.
set -g status-bg black #base02
set -g status-fg yellow #yellow
set -g status-attr default
# Default window title colors.
setw -g window-status-fg brightblue #base0
setw -g window-status-bg default
# Active window title colors.
setw -g window-status-current-fg brightred #orange
setw -g window-status-current-bg default
# Pane border.
set -g pane-border-fg black #base02
set -g pane-active-border-fg brightgreen #base01
# Message text.
set -g message-bg black #base02
set -g message-fg brightred #orange
# Pane number display.
set -g display-panes-active-colour blue #blue
set -g display-panes-colour brightred #orange
# Clock colors.
set -g clock-mode-colour green #green
# Make the left side of our status bar display the hostname.
set -g status-left "#H"
# Display the date and time on the right side of the status bar.
set -g status-right "%m-%d-%Y @ %r %Z"
# Center our windows in the status bar display.
set -g status-justify centre
# Disable window activity notifications in tmux windows.
setw -g monitor-activity off
# Refresh the status bar every 10 seconds.
set -g status-interval 10
#####