-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtmux.conf
64 lines (47 loc) · 1.55 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
# set-titles on
set -g set-titles on
# set Ctrl-a to prefix instead of Ctrl-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind a send-prefix
# allow Ctrl-a Ctrl-a to cycle panes
unbind ^A
bind ^A select-pane -t :.+
# start at 1 instead of 0 (easier to reach)
set -g base-index 1
# r reloads tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# extra commands for splitting
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# use the current pane path when creating a new window
bind c new-window -c "#{pane_current_path}"
# Quick pane selection
bind -r C-n select-window -t :+
bind -r C-p select-window -t :-
# Pane resizing
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
# turn on mouse
set -g mouse on
# attempt to set 256 colors
set -g default-terminal "screen-256color"
# set alerts
setw -g monitor-activity on
set -g visual-activity on
# enable vi keys
setw -g mode-keys vi
# toggle logging to a file
bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
# Allows for faster key repetition
set -s escape-time 0
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# set colors
source-file ~/.dotfiles/vendor/tmux-colors-redhat/tmuxcolors-redhat.conf
#source-file ~/.dotfiles/vendor/tmux-colors-solarized/tmuxcolors-256.conf